Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rolling Average between two dates

I'm trying to create a rolling average of dates between last month and two moths ago. What I'm doing is:

=avg({<MonthYear={">=$(=Date(addmonths(Max(MonthYear), -2),'MMM-YYYY'))

<=$(=Date(addmonths(Max(MonthYear), -1),'MMM-YYYY'))"}>}[Order Cost])

What this seems to do is, give me an average of any month up until last month, so as if the first portion of the set analysis is completely ignored.

Any idea what I'm doing wrong there?

1 Solution

Accepted Solutions
1 Reply
marcus_sommer