![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi Everyone, I have a fairly simple crosstab query and the results are good. I have a need to add a roll-up row to the query where I need to have 'National' averages. I am not sure how to go about this in the same crosstab query - not in a report. In short the crosstab is based on a heirarchy of queries that sort, filter, and add up the various components into a suitable format for the crosstab to work. The heirarchy is four to five layers deep depending on which path you choose back to the source data. At the top of the heirarchy is a single table that is the base of the crosstab, with all relevant data in the correct form. Is there any way that I can add a roll-up row without having to use a report? The crosstab SQL is: TRANSFORM Format$(Avg([Achieved]),"Percent") AS Done SELECT qryREPORT_1_MASTER_CUMULATIVE.SEGMENTE FROM qryREPORT_1_MASTER_CUMULATIVE GROUP BY qryREPORT_1_MASTER_CUMULATIVE.SEGMENTE PIVOT qryREPORT_1_MASTER_CUMULATIVE.VS; Any ideas? Cheers The Frog |
#3
| |||
| |||
|
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |