N
NoobHere
I need a query that will give me a running 3 month average.
Right now I was able to get as far as a query that will give me a running
average. What do I need to do to so that it reduces it to a running 3 month
average.
Background:
User can access the query for a date range (dynamic). The query will give
results for each instance per month and an average. However the average will
need to pull a running 3 month average.
Table Sample
Name YearMonth Total
A 2008-01 5
B 2008-02 6
C 2008-03 19
D 2008-04 2
E 2008-05 29
Query results would need to look like the following:
Name YearMonth Total Avg
A 2008-01 5
B 2008-02 6
C 2008-03 19 10
D 2008-04 2 9
E 2008-05 29 16.66
Right now all I get is: -my running average effort-
Name YearMonth Total Avg
A 2008-01 5 5
B 2008-02 6 5.5
C 2008-03 19 10
D 2008-04 2 8
E 2008-05 29 12.2
I'm pretty new to this so any help is definitely appreciated.
Thanks in advance!
Right now I was able to get as far as a query that will give me a running
average. What do I need to do to so that it reduces it to a running 3 month
average.
Background:
User can access the query for a date range (dynamic). The query will give
results for each instance per month and an average. However the average will
need to pull a running 3 month average.
Table Sample
Name YearMonth Total
A 2008-01 5
B 2008-02 6
C 2008-03 19
D 2008-04 2
E 2008-05 29
Query results would need to look like the following:
Name YearMonth Total Avg
A 2008-01 5
B 2008-02 6
C 2008-03 19 10
D 2008-04 2 9
E 2008-05 29 16.66
Right now all I get is: -my running average effort-
Name YearMonth Total Avg
A 2008-01 5 5
B 2008-02 6 5.5
C 2008-03 19 10
D 2008-04 2 8
E 2008-05 29 12.2
I'm pretty new to this so any help is definitely appreciated.
Thanks in advance!