elephant97
Board Regular
- Joined
- Sep 18, 2002
- Messages
- 63
Let me start off with the data set first, all in one table:
Name--------Date----Metric_1------Metric_2
John--------7/1/04-----11------------21
Tom--------7/8/04-----88------------99
John--------7/8/04-----103----------104
Here are my needs for a query:
1) When a name is selected, report only the 2 most recent metrics for that name in separate fields
2) When a name is selected, compile the previous 13 entries of the metric and take an average. So, under metric_1 there would be an avg of the last 13 weeks. Under metric_2, an average of the last 13 weeks, etc.
Hope that isn't too complicated. Thanks for the help!!!
Name--------Date----Metric_1------Metric_2
John--------7/1/04-----11------------21
Tom--------7/8/04-----88------------99
John--------7/8/04-----103----------104
Here are my needs for a query:
1) When a name is selected, report only the 2 most recent metrics for that name in separate fields
2) When a name is selected, compile the previous 13 entries of the metric and take an average. So, under metric_1 there would be an avg of the last 13 weeks. Under metric_2, an average of the last 13 weeks, etc.
Hope that isn't too complicated. Thanks for the help!!!