Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select the last X Date

I want click view to choose the previous months but don't know how to tell it.  For example, Today is June 15th, I want qlikview to give me the previous 5 months.  When the date is July 18th, I want it to give me the previous 6 months, etc.

Any help is appreciated.

2 Replies
Not applicable
Author

try this

sum({<Date = {">=$(=MonthStart(Max(Date), -5))<=$(=MonthEnd(Max(Date)))"},DATE=,Year=,Month=>}Sale)

er_mohit
Master II
Master II

see the attached file

hope it helps you