A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Showing Crosstab Totals Column in Chart



 
 
Thread Tools Display Modes
  #1  
Old February 12th, 2007, 11:30 PM posted to microsoft.public.access.queries
ALEX
external usenet poster
 
Posts: 731
Default Showing Crosstab Totals Column in Chart

I have the following crosstab query. I'd like to be able to put the Total Of
Amount on the secondary axis, but I can't figure out how. I appreciate your
help.

TRANSFORM Nz(Sum(Sales_All_qry.Amount),0) AS SumOfAmount
SELECT Sales_All_qry.Salesperson, Sum(Sales_All_qry.Amount) AS [Total Of
Amount]
FROM Sales_All_qry
GROUP BY Sales_All_qry.Salesperson
PIVOT Format([SaleDate],"mmm") In
("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug"," Sep","Oct","Nov","Dec");

  #2  
Old February 13th, 2007, 03:51 AM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Showing Crosstab Totals Column in Chart

What is the exact Row Source property SQL view?
Is your chart set up to show months on the X axis and Amounts on the Y axis?
What value do you want to display on the secondary axis (the total for a
sales person)?

--
Duane Hookom
Microsoft Access MVP


"Alex" wrote:

I have the following crosstab query. I'd like to be able to put the Total Of
Amount on the secondary axis, but I can't figure out how. I appreciate your
help.

TRANSFORM Nz(Sum(Sales_All_qry.Amount),0) AS SumOfAmount
SELECT Sales_All_qry.Salesperson, Sum(Sales_All_qry.Amount) AS [Total Of
Amount]
FROM Sales_All_qry
GROUP BY Sales_All_qry.Salesperson
PIVOT Format([SaleDate],"mmm") In
("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug"," Sep","Oct","Nov","Dec");

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.