Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

rolling 12 months

HI

I have date field with 3 years dates. But i need to get 12 months rolling.

How can we get 12 months rolling

can some one suggest on this

22 Replies
vikasdesai
Partner - Contributor III
Partner - Contributor III

Hello Friend

Please use Following Expression,

Sum({<Date={">=$(=Monthstart(max(Date)-11))<=$(=max(Date))"},Year=,Month=>} Sales)

Regards

Vikas

Anonymous
Not applicable
Author

Hi

Giving blank, can you qvw file for this

Thanks for your help

Anonymous
Not applicable
Author

Try this its work fine .

  I have removed only $ symbol before the Field [Month-Year]

IF((date(AddMonths(date(date(today(),'YYYYMMDD'),'MM-YYYY'),-11),'MM-YYYY'))<=date#(date(today(),'YYYYMMDD'),'MM-YYYY'),

[Month-Year])

Regards

Sahadev