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: 
gnmq
Contributor III
Contributor III

Line Chart not showing Top N

Hi 

 

I need urgent help on this.

Currently I have a table:

Date, Product Type, Product Name, Amount

and other fields.. but mainly focusing on these fields..

 

I have filtered on the dimension to show the top 5 product type on aggregated amount, however, it returns more than 5 product type. May I know how to fix this please? Thanks.

Labels (1)
1 Reply
NitinK7
Specialist
Specialist

Hi,

Try the following

1. Use dimension limit.

top5.JPG

OR

2. Use calculated dimension.

=Aggr(Only({<[Product Type]={'=Rank(Sum(Amount))<=5'}>}[Product Type]),[Product Type])

OR

3. Use Expression like.

Sum({<[Product Type]={'=Rank(Sum(Amount))<=5'}>}Amount)

 

Thanks,

Nitin.