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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|