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: 
paulyeo11
Master
Master

I need only display top 5 customer , it is possible to do it in QS table ?

Hi All

I have a table which list all company sales for last year .

I need only display top 5 customer , it is possible to do it in QS ?

Now it display all.

Paul

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Sum({<year={2016}, COMPANY = {"=Rank(Sum({<year = {2016}>} sales)) < 6"}>} sales)

View solution in original post

4 Replies
paulyeo11
Master
Master
Author

my QVF

alan_richmond
Creator
Creator

2017-01-04_13-52-22.jpg

sunny_talwar

Try this:

Sum({<year={2016}, COMPANY = {"=Rank(Sum({<year = {2016}>} sales)) < 6"}>} sales)

paulyeo11
Master
Master
Author

Hi All

Thank you both sharing. Sunny approach is very good , because i just need to display top 5 company. Where Alan way is more simple , but then it give the last row as a summation of all other row. This approach also have it advantages , as it will display total amount of the top 6 till the rest customer customer sales. Any way i just notice that this version have this setting , remember ver 1 does not have this,

Paul