A
Alan Z. Scharf
1. I have a report with an MSGraph pie chart based on a query from SQLServer
in an Access ADP file.
2. The first row of data for the pie is missing, and the pie adds up the
remaining data rows to 100% as if the first row isn't in the dataset.
3. The datasheet for the pie chart is
StyleName AssetVal
US Long/Short $1,279,235,962.54
Global Macro $698,732,662.86
Cash & Other $534,771,158.10
Global Equity Long $438,678,247.72
Emerging Markets $192,987,295.78
I think I know what is happening, but I'm not sure why.
Using the above dataset,:
1. If I paste it into the datasheet in Design mode, the pie chart
displays correctly in Design mode.
2. However, if I then Preview the Access report, with the underlying query
as the datasource for the chart, the first data row for 'US Long/Short'
is missing as a pie slice.
3. I can reporduce this problem manually in Design mode if I clear the
datasheet and then paste the five data rows into the datasheet starting
with the very top row, i.e. overwriting the row with the column headings
'StyleName' and 'AssetVal'. In this test, the first row in the datasheet
has the missing
pie slice data, instead of the Column Names. Hence only the last four rows
are used as data for the pie.
4. Conclusion: Somehow, it seems the query is doing the same thing as my
manually creating the problem, i.e. not placing the data in the datasheet
properly, overwriting the column name row.
I checked the query and it works fine and is returning the correct data..
Thanks for any help.
Alan
in an Access ADP file.
2. The first row of data for the pie is missing, and the pie adds up the
remaining data rows to 100% as if the first row isn't in the dataset.
3. The datasheet for the pie chart is
StyleName AssetVal
US Long/Short $1,279,235,962.54
Global Macro $698,732,662.86
Cash & Other $534,771,158.10
Global Equity Long $438,678,247.72
Emerging Markets $192,987,295.78
I think I know what is happening, but I'm not sure why.
Using the above dataset,:
1. If I paste it into the datasheet in Design mode, the pie chart
displays correctly in Design mode.
2. However, if I then Preview the Access report, with the underlying query
as the datasource for the chart, the first data row for 'US Long/Short'
is missing as a pie slice.
3. I can reporduce this problem manually in Design mode if I clear the
datasheet and then paste the five data rows into the datasheet starting
with the very top row, i.e. overwriting the row with the column headings
'StyleName' and 'AssetVal'. In this test, the first row in the datasheet
has the missing
pie slice data, instead of the Column Names. Hence only the last four rows
are used as data for the pie.
4. Conclusion: Somehow, it seems the query is doing the same thing as my
manually creating the problem, i.e. not placing the data in the datasheet
properly, overwriting the column name row.
I checked the query and it works fine and is returning the correct data..
Thanks for any help.
Alan