Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
NickHoff
Specialist
Specialist

Rolling Twelve Months for Previous Month

Currently I have a rolling 12 months total using the following:

=NUM(AVG({$<CalendarYear =, CalendarMonthName =,AddedOn={">=$(=addmonths(max(AddedOn),-12))  <=$(=max(AddedOn))"}>}  MonthlyTargetValue),'##')

I'd like to get the rolling twelve months from the previous month not the current month.

1 Solution

Accepted Solutions
ramoncova06
Specialist III
Specialist III

it depends on how you date


=NUM(AVG({$<CalendarYear =, CalendarMonthName =,AddedOn={">=$(=addmonths(max(AddedOn),-12))  <=$(=monthend(max(AddedOn),-1))"}>}  MonthlyTargetValue),'##')

View solution in original post

2 Replies
ramoncova06
Specialist III
Specialist III

it depends on how you date


=NUM(AVG({$<CalendarYear =, CalendarMonthName =,AddedOn={">=$(=addmonths(max(AddedOn),-12))  <=$(=monthend(max(AddedOn),-1))"}>}  MonthlyTargetValue),'##')

NickHoff
Specialist
Specialist
Author

monthend did it, thank you