Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set for rolling 12 months?

=Sum({<date ={">$(Date(=AddMonths(max(date),-12)))<=$(Date(=AddMonths(max(date),-1)))"} >}[budget amount])

here date is dimension

date:

1/1/2013

1/1/2014

2/1/2014

1/1/2015

1/2/2015

but it showing from   1/1/2013      why like this

pls correct me ?

1 Reply
Not applicable
Author

Hello,

Didn't try out but seems the equal sign is missplaced.

=Sum({<date ={">$(=Date(AddMonths(max(date),-12)))<=$(=Date(AddMonths(max(date),-1)))"} >}[budget amount])