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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Top 10 in Pivot table

Hi All,  

            I have a pivot table in that have Brand dimension  in that have almost 30 brands is there

so now  i want i pick top 10 Brands based on sales there is no dimension limit Tab for pivot  table so can u suggest how we can restrict the top 10 brands in pivot table

thanks In Advance

Labels (1)
2 Replies
MayilVahanan
MVP
MVP

Hi

Try like this

=if(rank(Sum(Sales)) < = 10, Sum(Sales))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

You have to use a calculated dimension. You cant use sum and other aggregation function inside a IF statement like that. You have to use something like the below mentioned. In aggr I have used brand to aggregate, you have to mention all fields you are using as dimensions.

 

=AGGR(If(Rank(sum(Sales))<=10,Brand),Brand)