Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have many sheets which use a date field within charts. Similar to a list box to filter by year, I'd like to have an option for the user to select Last 12 Months instead of manually picking 365 days.
Is this possible? Is it better as a button? How would I write this expression? Basically it is if my date field is >= 365 days ago, show it if clicked or if deslected show all data.
Thanks in advance!
From Recipes | QlikView CookBook - Rob Wunderlich
Regards
Create field monthyear using monthname(Date)
Create expression:
=sum({<year,month,monthyear={">=$(=addmonths(max(monthyear),-11))<=$(=addmonths(max(monthyear),0))"}>}Sales)
Thank you! This was perfect!