G
Guest
I am using the following SQL for the Quarter,
SELECT (Format([Date],"q"" '""yy")) AS Expr1,
Sum([ICD Query].[Bragg Main]) AS [Fort Bragg Main],
Sum([ICD Query].[82nd]) AS [82nd ABN DIV],
Sum([ICD Query].Total) AS Total
FROM [ICD Query]
GROUP BY (Format([Date],"q"" '""yy")),
(Year([Date])*4+DatePart("q",[Date])-1);
I would like the quarter to be displayed as 1Q05 can this be done?
Also I need to order By date. With this formula, it is ordering like;
1' 05
1' 06
2' 05
3' 05
etc...
Please help
SELECT (Format([Date],"q"" '""yy")) AS Expr1,
Sum([ICD Query].[Bragg Main]) AS [Fort Bragg Main],
Sum([ICD Query].[82nd]) AS [82nd ABN DIV],
Sum([ICD Query].Total) AS Total
FROM [ICD Query]
GROUP BY (Format([Date],"q"" '""yy")),
(Year([Date])*4+DatePart("q",[Date])-1);
I would like the quarter to be displayed as 1Q05 can this be done?
Also I need to order By date. With this formula, it is ordering like;
1' 05
1' 06
2' 05
3' 05
etc...
Please help