Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

only show top 5 values in a chart

Hi, I have a bar chart that is showing count(field1) as expression. I want to just show the first top five (the biggest numbers) and don't show the rest. How should I do this in qlikview

1 Solution

Accepted Solutions
effinty2112
Master
Master

Hello,

          You could set the dimension limit to 5 and exclude others in the chart properties or replace your dimension with a calculated dimension Like:

Aggr(if(Rank(Count(Field))<6,Dim), where Dim is your original dimension.

good luck

Andrew

View solution in original post

13 Replies
sunny_talwar

May be like this:

If(Rank(Count(field1), 1, 1) < 6, Count(field1))

narendiran
Partner - Creator
Partner - Creator

Hi,

You can do this simply in a front end by limiting the dimension, please see the below pic

Not applicable
Author

This works, but it is still showing the other dimensions in the chart but with blank bars. Is there a way to fix it?

jaspal_icon
Partner - Creator
Partner - Creator

Hello ,

It should b easy, go to Chart properties in Dimension limits, and select option largest 5, and uncheck "other" in bottom side so that no other come.

Hope it will be useful, let me know if not.

Thanks

narendiran
Partner - Creator
Partner - Creator

Un tick show others

sunny_talwar

Have you suppressed zero?

Capture.PNG

Anonymous
Not applicable
Author

Hi

Please provide the Dimension name as well

or

try this  in DIMENSION

=If(Aggr(Rank(count(field)), DIMENSIOFIELD)<=5, DIMENSIOFIELD, Null())



and


mark  the


supress when value is null

Not applicable
Author

Hi Sunny, this is a Qlikview app

sunny_talwar

Man you are confusing us with QlikView and Qlik Sense questions

May be on the presentation tab, check 'Suppress Zero Values'.