Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
MK9885
Master II
Master II

To show top 5 values

I'm trying to show only top 5 values in a bar graph in Qlik Sense. I'm aware of Rank function but not able to achieve it.

I've this as dimension, =If([Field1] = 'Value' and Field2 <> 'Value, Field2)

I want to show top 5 based on the above expression.

1 Solution

Accepted Solutions
prashanth1712
Contributor III
Contributor III

Hi arvind,

U will be having direct option to achieve that.

Just click on the dimension-> Limitation-> fixed number and enter 5 in the box

bar chart.png

View solution in original post

6 Replies
sunny_talwar

What you have provided is the expression or is this a dimension? I am confused, can you elaborate?

MK9885
Master II
Master II
Author

It's a Calculated Dimension

prashanth1712
Contributor III
Contributor III

Hi arvind,

U will be having direct option to achieve that.

Just click on the dimension-> Limitation-> fixed number and enter 5 in the box

bar chart.png

Anonymous
Not applicable

Have you tried using the limitation function on the properties panel?

MK9885
Master II
Master II
Author

Thanks Prashanth,

I was actually using an extension for Bar Graph and that is why I couldn't see the sorting option. Now I used the default Qlik Sense chart and I got it as you showed.

MK9885
Master II
Master II
Author

Yes, I did now and I got it.

Thanks.