Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME 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