Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

TOP5 Customers based on sales

I want to display Top5 customers based on sales in straight table by using expression.

Only Top5 customers (Based on sales) should display, remaining customers should not display.

Please drop the solution here only as i can't open QVW file in my machine.

  

CustomerSales
Alles Lusekofter63.55
Art et Fashion140.4
Aujourd´hui343.44
Autokleider205.2
Belgium Black4048
Big Foot Shoes95.9
Bobby Socks163.36
Boleros3931.22
Bond Ltd21.36
Boombastic185.2
Casual Clothing332.64
Champes182
Chateau de Ville620.55
Cloe do Pau3189.06
Copacabana165.6
Da Bikini Expertu796.4
Da Santho2433.9
Das Alpen Shoe77.97
Davenport Fash617.4
14 Replies
passionate
Specialist
Specialist

Use calculated dimension as =Aggr(if(rank(sum(Sales))<=5,Customers),Customers)

Expresion as Sum(Sales)

passionate
Specialist
Specialist

Suppress null.PNG

Also check suppress null option

Anonymous
Not applicable
Author

Got it. Thank u so much friends.

TOP5 Customers.png

manoj217
Creator III
Creator III

=concat ( IF( aggr ( Rank(sum(Sale)),Customer)<=5, Customer & chr(10)))

pradosh_thakur
Master II
Master II

please close the thread by marking someone's answer correct and the answer which helped you as helpful. you can mark more than one answer as helpful.

regards

Pradosh

Learning never stops.