Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlik1_User1
Specialist
Specialist

to show Top 5 Year in filterpane

Hi All,

Can we show Top 5 Year in filter pane with use of set analysis or any other approach, except making changes in script.

Let say Field name is Year with values 2017,2018,2019,2020,2021,20122,2023

Expected Output: in Filter pane.

2019,2020,2021,20122,2023

1 Solution

Accepted Solutions
fosuzuki
Partner - Specialist III
Partner - Specialist III

Hi

Try this:

=aggr(If(Only({1} Year)>=$(=Max({1} Year))-5,Only({1} Year)), Year)

 

Hope this helps

View solution in original post

2 Replies
fosuzuki
Partner - Specialist III
Partner - Specialist III

Hi

Try this:

=aggr(If(Only({1} Year)>=$(=Max({1} Year))-5,Only({1} Year)), Year)

 

Hope this helps

Qlik1_User1
Specialist
Specialist
Author

Thanks it worked..