Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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?

Labels (1)
1 Solution

Accepted Solutions
1 Reply
marcus_sommer