Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Bar chart: how to show limit data to top 10

Hi,

I have bar chart that shows way too many data points on the x axis. How can I only show the top 5 or 10?

Thanks,

Mat

3 Replies
Not applicable
Author

Hi

you can create a new dimension as

if( aggr( rank( sum(Value) , Idcustomer ) <= 10 ) , Idcustomer )

it displays the top 10 of customer sorted by sum(Value)

JJ

Not applicable
Author

Sweet. Love the aggr function. Is there documentation that covers all the functions. The help menu doesn't.

thnx

Not applicable
Author

Agree AGGR is the most important function of QV.

I also agree the reference guide is not very clear about the use of some functions. The best way to understand how to use function is to search in the forum where there's a lot of post with good examples.

JJ