ACC: How to Create a Chart That Does Not Summarize DataID: Q181497
|
Moderate: 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.
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.
Table: Table1
-----------------------
Field Name: TransDate
Data Type: Date/Time
Field Name: TransAmt
Data Type: Number
TransDate TransAmt
1/1/95 9
1/1/95 7
1/5/95 8
1/5/95 6
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:
Q109315 ACC: How to Change the Order of Columns in a Chart (1.x/2.0)
Q141235 ACC: How to Change the Order of Columns in a Chart (95/97)
Additional query words: inf msgraph turn off
Keywords :
Version : WINDOWS:2.0,7.0,97
Platform :
Issue type :
Last Reviewed: April 26, 1999