B
blinton25
Hello,
I have a report which I use to return results grouped by
Quarter:
SELECT regionorder, Regions3, 1 As Quarter, January as
A, February as B, March as C FROM
RegionofResidenceCrosstab
UNION ALL
SELECT regionorder, Regions3, 2 As Quarter, April, May,
June FROM RegionofResidenceCrosstab
UNION ALL
SELECT regionorder, Regions3, 3 As Quarter, July, August,
September FROM RegionofResidenceCrosstab
UNION ALL SELECT regionorder, Regions3, 4 As Quarter,
October, November, December FROM
RegionofResidenceCrosstab;
gives me a result set like:
regionorder Regions3 Quarter A B C
1 USA 1 128 80 606
2 CANADA 1 166 294 624
1 USA 2 124 80 606
2 CANADA 2 162 294 624
In the detail section I place text controls containing A,
B, C and the report is formatted by quarter (I have a
quarter header).
I wish to obtain a total for the entire year, based on
summing the values which are displayed in the detail
section but I am not sure how to go about this.
I have a report which I use to return results grouped by
Quarter:
SELECT regionorder, Regions3, 1 As Quarter, January as
A, February as B, March as C FROM
RegionofResidenceCrosstab
UNION ALL
SELECT regionorder, Regions3, 2 As Quarter, April, May,
June FROM RegionofResidenceCrosstab
UNION ALL
SELECT regionorder, Regions3, 3 As Quarter, July, August,
September FROM RegionofResidenceCrosstab
UNION ALL SELECT regionorder, Regions3, 4 As Quarter,
October, November, December FROM
RegionofResidenceCrosstab;
gives me a result set like:
regionorder Regions3 Quarter A B C
1 USA 1 128 80 606
2 CANADA 1 166 294 624
1 USA 2 124 80 606
2 CANADA 2 162 294 624
In the detail section I place text controls containing A,
B, C and the report is formatted by quarter (I have a
quarter header).
I wish to obtain a total for the entire year, based on
summing the values which are displayed in the detail
section but I am not sure how to go about this.