A
ac512
Hello
I have endeavoured to get assistance with this problem in the past, but I
think part of the problem was my explanation of what I want to do. As a
result, I will attempt to provide a detailed explanation of what I require
(apologies - please bare with me!).
I am using Access 2007, and have a query that calculates a count of units as
per this example:
MONTH UNITCOUNT
Oct-07 5
Nov-07 7
Dec-07 3
Jan-08 9
Feb-08 6
Mar-08 8
Apr-08 9
May-08 6
Jun-08 3
Jul-08 5
Aug-08 3
Sep-08 7
The MONTH column is a a date field formatted as mmm-yy, while the unit field
is an integer. I am trying to use this query to calculate a running 3 month
count. EG. using the above table, the results will look like the following:
MONTH UNIT COUNT
Dec-07 15
Jan-08 19
Feb-08 18
Mar-08 23
Apr-08 23
May-08 23
Jun-08 18
Jul-08 14
Aug-08 11
Sep-08 15
So, I am trying to group the date field into 3 month intervals (which I
don't think is neccessarily solved by using any references to quarters as a
time period?), and count the units so that they show the aggregated results
of the current month and the previous 3 months (as per the table above). One
thing to note, is that my date field spans over more than one year. Next
month, Oct-08 results will aggregate the October units with the September &
August units.
I really hope this all makes sense?
Any assistance with this problem will be greatly appreciated. I have been
stuck on this one for some time.
Thank you very much in advance
Kind regards
AC
I have endeavoured to get assistance with this problem in the past, but I
think part of the problem was my explanation of what I want to do. As a
result, I will attempt to provide a detailed explanation of what I require
(apologies - please bare with me!).
I am using Access 2007, and have a query that calculates a count of units as
per this example:
MONTH UNITCOUNT
Oct-07 5
Nov-07 7
Dec-07 3
Jan-08 9
Feb-08 6
Mar-08 8
Apr-08 9
May-08 6
Jun-08 3
Jul-08 5
Aug-08 3
Sep-08 7
The MONTH column is a a date field formatted as mmm-yy, while the unit field
is an integer. I am trying to use this query to calculate a running 3 month
count. EG. using the above table, the results will look like the following:
MONTH UNIT COUNT
Dec-07 15
Jan-08 19
Feb-08 18
Mar-08 23
Apr-08 23
May-08 23
Jun-08 18
Jul-08 14
Aug-08 11
Sep-08 15
So, I am trying to group the date field into 3 month intervals (which I
don't think is neccessarily solved by using any references to quarters as a
time period?), and count the units so that they show the aggregated results
of the current month and the previous 3 months (as per the table above). One
thing to note, is that my date field spans over more than one year. Next
month, Oct-08 results will aggregate the October units with the September &
August units.
I really hope this all makes sense?
Any assistance with this problem will be greatly appreciated. I have been
stuck on this one for some time.
Thank you very much in advance
Kind regards
AC