....you just need to add your value column a second time and set the column to a row heading. Works great.
NetworkTrad wrote:
cross tab column sum
07-Jan-08
Access07; haven't used CrossTab queries before
initial set up is fine; weeks along top, employees are rows, values in
grid ok..
the wizard allowed me to easily sum each row; which I nee
how does one sum the columns? there are 52 weeks and so am hoping to
avoid a manual coding approach for each..
figured it might be a common question but have searched around on this site
and haven't come up with that q/a..
ti
--
NTC
Previous Posts In This Thread:
cross tab column sum
Access07; haven't used CrossTab queries before
initial set up is fine; weeks along top, employees are rows, values in
grid ok..
the wizard allowed me to easily sum each row; which I nee
how does one sum the columns? there are 52 weeks and so am hoping to
avoid a manual coding approach for each..
figured it might be a common question but have searched around on this site
and haven't come up with that q/a..
ti
--
NTC
You can't in a query unless you use a union query.
You can't in a query unless you use a union query. Are you using the
crosstab query as the source for a report? If so, could you use a subreport
based on another crosstab that didn't group by employees
You might post the SQL of the crosstab. (View: SQL from the menu)
The Union SQL might look something like the following
Transform Sum(SomeValue) as
SELECT "Detail" as LineTyp
, EmployeeNam
, Sum(SomeValue) as Tota
FROM SomeTabl
GROUP BY "Detail", EmployeeNam
PIVOT DatePart("ww",DateField) in (1,2,3,4,5,6,7,8,9,...51,52,53
UNION AL
Transform Sum(SomeValue) as
SELECT "Total" as LineType
"" as EmployeeNam
, Sum(SomeValue) as Tota
FROM SomeTabl
GROUP BY "Total", "
PIVOT DatePart("ww",DateField) in (1,2,3,4,5,6,7,8,9,...51,52,53