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: 
sabmaldun4
Contributor
Contributor

top 10% by rank

Hello everyone,

I try to get the top ten percent of customer by Sales.

There should be a rank function first on which the second function relates to ( I guess.)

I tried with the following solution, but it did not quite work:

= if (aggr(rank(sum(Sales)),Customer)>=0.9*count( total distinct (Customer)),'Top 10%','Bottom')

 

Anyone of you guys has a solution for it?

Thank you!!!

 

 

Labels (2)
1 Reply
sunny_talwar

Would you be able to share a sample to look at this? Also, it would be helpful to know the expected output based on the sample data provided.