M
Michael Lam
Hi All
I have created query to group the records department and month
SELECT DISTINCTROW Format$([RequestFormAllrecords].[Created Date],'mmmm
yyyy') AS [Created Date/Month], RequestFormAllrecords.Department,
Sum([RequestFormAllrecords].[Estimate Effort]) AS [Total Estimate Effort],
Count(*) AS RequestFormAllrecordscount
FROM RequestFormAllrecords
GROUP BY Format$([RequestFormAllrecords].[Created Date],'mmmm yyyy'),
RequestFormAllrecords.Department, Year([RequestFormAllrecords].[Created
Date])*12+DatePart('m',[RequestFormAllrecords].[Created Date])-1;
however the output result like this
Created Date/Month Department Total Estimate Effort
RequestFormAllrecordscount
March 2004 AFFC 0
1
January 2004 AFFC 0.75
1
February 2004 AFFC 2
3
how can I sort the Create Date /Month so that It appear from Jan to Mar and
so on
Michael Lam
I have created query to group the records department and month
SELECT DISTINCTROW Format$([RequestFormAllrecords].[Created Date],'mmmm
yyyy') AS [Created Date/Month], RequestFormAllrecords.Department,
Sum([RequestFormAllrecords].[Estimate Effort]) AS [Total Estimate Effort],
Count(*) AS RequestFormAllrecordscount
FROM RequestFormAllrecords
GROUP BY Format$([RequestFormAllrecords].[Created Date],'mmmm yyyy'),
RequestFormAllrecords.Department, Year([RequestFormAllrecords].[Created
Date])*12+DatePart('m',[RequestFormAllrecords].[Created Date])-1;
however the output result like this
Created Date/Month Department Total Estimate Effort
RequestFormAllrecordscount
March 2004 AFFC 0
1
January 2004 AFFC 0.75
1
February 2004 AFFC 2
3
how can I sort the Create Date /Month so that It appear from Jan to Mar and
so on
Michael Lam