ACC: How to Create a Chart That Does Not Summarize DataLast reviewed: February 23, 1998Article ID: Q181497 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. When you create a chart in Microsoft Graph, data is automatically summarized for each distinct value on the x axis, which is also known as the independent axis. For example, if you plot a field containing dates along the x axis, and if more than one record contains a particular date in that field, that date appears only once on the x axis. The values in the data field of any records that contain that date are summarized according to the function that you have selected (Sum, Average, or Count, for example); the result is a single value that is represented in the chart. Therefore, the chart displays only a single data point for a particular date, even though there may be multiple records corresponding to that date. However, you may not want to summarize your data. For example, if you have three records that contain a particular date, you may want your chart to display three distinct data points for that date. If you are using Microsoft Access version 2.0, or if you are plotting date values along the x axis, you must change the SQL statement on which the chart is based to prevent the data from being summarized.
MORE INFORMATIONIn Microsoft Access 2.0, the Chart Wizard does not give you an option not to summarize the data. In Microsoft Access 7.0 and 97, the layout screen of the Chart Wizard allows to you specify how you want to summarize the data. By default, data is summarized by Sum, and the caption of a field button that corresponds to a data field is "SumOf<FieldName>," where <FieldName> is the name of the data field. When you double-click a field button in the Data box, the Summarize dialog box appears, and you can select a function by which to summarize the data. However, if you select None in the Summarize list and click OK, and if the axis box contains a field whose data type is Date/Time, you receive the following error when you click Next to advance to the next screen of the Chart Wizard:
All data fields must be summarized (using Sum, Avg, Min, Max or Count) when a date filed is used in the Axis or Series. To change the way a field is summarized, double-click it.The following example demonstrates how to prevent the summarization of data by removing the GROUP BY clause from the SQL statement in the RowSource property of the chart.
Create the Data
Create the ChartIf you are using Microsoft Access 2.0, follow these steps:
Change the Chart's Underlying SQL Statement
REFERENCESYou can also create and save a query and then use that query as the row source of the chart. For more information about how to use a saved query as the row source of a chart, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q109315 TITLE : ACC: How to Change the Order of Columns in a Chart (1.x/2.0) ARTICLE-ID: Q141235 TITLE : ACC: How to Change the Order of Columns in a Chart (95/97) |
Additional query words: inf msgraph turn off
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |