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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Krish2459_58
Creator II
Creator II

rolling 3 years data

Hi,

I need to show data from today to next 3years same day. The dates are not continuous like there is no data for 02-01-2028.

 

I tried this

sum({<DateNum_Eve= {">$(=today()) <$(=Addmonths($(vTodaysDateNum),36))"}>} [sales])

Thanks..

Labels (2)
3 Replies
Clement15
Partner - Specialist
Partner - Specialist

Hello,
You can use this :

sum({<DateNum_Eve= {">$(=today()) <$(=Addmonths(today(),36))"}>} [sales])

Even if the date is not in your model it should not pose a problem for the inferiority criterion.

Krish2459_58
Creator II
Creator II
Author

Hi Any suggestions please..

Kushal_Chawda
MVP
MVP

@Krish2459_58  try addyears

sum({<DateNum_Eve= {">$(=today()) <$(=AddYears(today(),3))"}>} [sales])