Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

2 Replies
MayilVahanan

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)