ACC: How to Create a Chart That Does Not Summarize Data This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
This article was previously published under Q181497 Moderate: Requires basic macro, coding, and interoperability skills.
On This PageSUMMARY
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 INFORMATION
In 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
REFERENCES
You 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:
109315 (http://support.microsoft.com/kb/109315/EN-US/) ACC: How to Change the Order of Columns in a Chart (1.x/2.0) 141235 (http://support.microsoft.com/kb/141235/EN-US/) ACC: How to Change the Order of Columns in a Chart (95/97) APPLIES TO
| Article Translations
|


Back to the top
