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: 
user467341
Creator II
Creator II

Filter years in filter pane

Hi Qlik community,

I have a year dimension from 1990 to 2050. When I load this year dimension to my filter pane, it has 1990 to 2050.

How can I use set expression to limit this filter?

I will like to filter from 2000 (an input minimum year), and up to the current year 2022 (automatically, so if we are in 2023, the filter pane will create 2023 entry auto).

Thank you.

Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

=Aggr(Only({<Year={">=$(=Year(Today())-1)<=$(=Year(Today()))"} >}Year),Year)

View solution in original post

1 Reply
BrunPierre
Partner - Master
Partner - Master

=Aggr(Only({<Year={">=$(=Year(Today())-1)<=$(=Year(Today()))"} >}Year),Year)