Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chart Help

Status
Not open for further replies.

derrickchanson

Technical User
Joined
Jan 11, 2002
Messages
7
Location
US
Hello,

I'm getting an error when I'm trying to create a chart. The chart is based on a query with the following data:

Month Campaign Sales
1/2005 A 100
1/2005 B 200
2/2005 A 250
2/2005 B 300

I want the chart to show "Sales" on the Y axis and "month" on X axis. I want sales totaled for each month and I want a separate line for each "Campaign". Here is the code that appears in the row source when I use the chart wizard:

TRANSFORM Sum([Incr$_Store]) AS [SumOfIncr$_Store] SELECT [Month] FROM [qryAnnual_Performance_Trend_4] GROUP BY [Month] PIVOT [Campaign];

Thanks
Derrick
 
Change the PIVOT then

Code:
TRANSFORM Sum([Incr$_Store]) AS [SumOfIncr$_Store] SELECT [Campaign] FROM [qryAnnual_Performance_Trend_4]   GROUP BY [Campaign] PIVOT [Month];

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top