A
ashg657
Hey guys, hope someone can help me out here...
I have a single table with roughly 12,000 records. Each entry has a period
in which it was made (periods in occordance with our company calendar Period1
is October thru Period12 which is September), also each entry has a Week in
which it was made, again in occordance with a company calendar (Week1 starts
1st Oct thru to Week52 which starts on 23rd Sept).
I have been asked to generate a report/chart which will take each Week and
produce a cumulative average. i.e.:
Week1 - sum all entries and calculate average
Week2 - sum all entries from week1 AND week2 and calculate average
Week3 - sum all entries from week1 AND week2 AND week3
Week4 - sum all entreis from week1,week2, week3 and week4 and calculate
average. Perhaps then store these calculated averages in a temp table?
Then reset the average back to ZERO to begin the next PERIOD.
So in summary, calculate cumulative averages for week1-week4 for every
period, resetting averages back to zero after each period (4 weeks).
Hope that explains enough,
please help, i am well and truly stuffed on this one. If you need more info,
happy to oblige.
Cheers, Ash.
I have a single table with roughly 12,000 records. Each entry has a period
in which it was made (periods in occordance with our company calendar Period1
is October thru Period12 which is September), also each entry has a Week in
which it was made, again in occordance with a company calendar (Week1 starts
1st Oct thru to Week52 which starts on 23rd Sept).
I have been asked to generate a report/chart which will take each Week and
produce a cumulative average. i.e.:
Week1 - sum all entries and calculate average
Week2 - sum all entries from week1 AND week2 and calculate average
Week3 - sum all entries from week1 AND week2 AND week3
Week4 - sum all entreis from week1,week2, week3 and week4 and calculate
average. Perhaps then store these calculated averages in a temp table?
Then reset the average back to ZERO to begin the next PERIOD.
So in summary, calculate cumulative averages for week1-week4 for every
period, resetting averages back to zero after each period (4 weeks).
Hope that explains enough,
please help, i am well and truly stuffed on this one. If you need more info,
happy to oblige.
Cheers, Ash.