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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Bars in Bar Charts in an order



 
 
Thread Tools Display Modes
  #1  
Old July 26th, 2007, 04:38 PM posted to microsoft.public.access.reports
lin
external usenet poster
 
Posts: 58
Default Bars in Bar Charts in an order

Hello,

I have Bar Chart in access database.

Rowsource for this chart is
TRANSFORM Sum(Chart_FD.CountOfUCCID) AS SumOfCountOfUCCID
SELECT Year
FROM Chart_FD
GROUP BY Year
PIVOT EQTMAN;
It works fine. But I would like to arrange the bars in an order of SumOf
CountOf UCCID descending. Trnasform Statement did not let me to Order by an
aggregate function. Is there any other way I can do this.

Thank you for your help.
  #2  
Old July 27th, 2007, 03:50 AM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Bars in Bar Charts in an order

I don't think there is any easy method for doing this. Since the
[SumOfCountOfUCCID] is grouped by Year, which Year's results would you use
for sorting?
--
Duane Hookom
Microsoft Access MVP


"Lin" wrote:

Hello,

I have Bar Chart in access database.

Rowsource for this chart is
TRANSFORM Sum(Chart_FD.CountOfUCCID) AS SumOfCountOfUCCID
SELECT Year
FROM Chart_FD
GROUP BY Year
PIVOT EQTMAN;
It works fine. But I would like to arrange the bars in an order of SumOf
CountOf UCCID descending. Trnasform Statement did not let me to Order by an
aggregate function. Is there any other way I can do this.

Thank you for your help.

  #3  
Old July 27th, 2007, 02:28 PM posted to microsoft.public.access.reports
lin
external usenet poster
 
Posts: 58
Default Bars in Bar Charts in an order

It depends on which year the users selecting. They have the option to select
the year for last 5 years.

Thank you

"Duane Hookom" wrote:

I don't think there is any easy method for doing this. Since the
[SumOfCountOfUCCID] is grouped by Year, which Year's results would you use
for sorting?
--
Duane Hookom
Microsoft Access MVP


"Lin" wrote:

Hello,

I have Bar Chart in access database.

Rowsource for this chart is
TRANSFORM Sum(Chart_FD.CountOfUCCID) AS SumOfCountOfUCCID
SELECT Year
FROM Chart_FD
GROUP BY Year
PIVOT EQTMAN;
It works fine. But I would like to arrange the bars in an order of SumOf
CountOf UCCID descending. Trnasform Statement did not let me to Order by an
aggregate function. Is there any other way I can do this.

Thank you for your help.

  #4  
Old July 27th, 2007, 02:56 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Bars in Bar Charts in an order

If they only select a single year then you might try change your Row Source to

SELECT Sum(Chart_FD.CountOfUCCID) AS UCCIDCount
FROM Chart_FD
ORDER BY Sum(Chart_FD.CountOfUCCID) DESC;

--
Duane Hookom
Microsoft Access MVP


"Lin" wrote:

It depends on which year the users selecting. They have the option to select
the year for last 5 years.

Thank you

"Duane Hookom" wrote:

I don't think there is any easy method for doing this. Since the
[SumOfCountOfUCCID] is grouped by Year, which Year's results would you use
for sorting?
--
Duane Hookom
Microsoft Access MVP


"Lin" wrote:

Hello,

I have Bar Chart in access database.

Rowsource for this chart is
TRANSFORM Sum(Chart_FD.CountOfUCCID) AS SumOfCountOfUCCID
SELECT Year
FROM Chart_FD
GROUP BY Year
PIVOT EQTMAN;
It works fine. But I would like to arrange the bars in an order of SumOf
CountOf UCCID descending. Trnasform Statement did not let me to Order by an
aggregate function. Is there any other way I can do this.

Thank you for your help.

 




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 06:42 PM.


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