Below is the code that I have for a crosstab query. This shows me columns by week with totals for system groups in the columns. What I would like to be able to do is to get a Grand totals column of each system group that would show the totals of each week added together. Does anyone know how to accomplish this?
Code:
PARAMETERS [Forms]![Queries_ReportsFRM]![StartDateTxt] DateTime, [Forms]![Queries_ReportsFRM]![EndDateTxt] DateTime;
TRANSFORM Sum([Trends-Mechanical-1-3TON-WEEK].[Mechanical Totals]) AS [SumOfMechanical Totals1]
SELECT [Trends-Mechanical-1-3TON-WEEK].SystemGroup
FROM [Trends-Mechanical-1-3TON-WEEK]
GROUP BY [Trends-Mechanical-1-3TON-WEEK].SystemGroup
PIVOT [Trends-Mechanical-1-3TON-WEEK].YearMonthWeek;