Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving average calculations

Status
Not open for further replies.

pd2004

Technical User
Aug 24, 2009
44
US
Hello,

I have a table with time series information. It has the following fields:

Category
Date
Sales

I want to use a query to add a field with a moving average (10 day) of the sales data for each date/category combination. I know this is probably simple, but I have never been able to figure out how to do it. Any assistance is greatly appreciated.

Thank you,

Pat
 
maybe:
Code:
WHERE Date[Date] BETWEEN (Today()) and (Today() - 10)
not positive that Today is the right function, but there's a way to get today's date using a function, it may be Now() or Date().

HTH

Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top