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: 
Afsar_Ulla
Contributor
Contributor

Filter Pane

Hi Everyone,

 

I have 24 months of data . wanted to show only  Previous 13 months of data  in filter pane . and my date field is MonthYear .

Can someone help me with this?

 

Thank you

Labels (1)
1 Reply
hic
Former Employee
Former Employee

If you use a calculated field with an Aggr() in a filter pane, you can achieve this. For example, the following would work:

=Aggr(If(MonthYear>=AddMonths(Today(),-13),MonthYear),MonthYear)

This of course assumes that MonthYear is a date internally; that it has a numeric value and is created like e.g.

Date(MonthStart(Date),'MMM YYYY') as MonthYear