Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

top 5

Hello Guys,

I need to display in a table, only the top 5 amount recharge, i know how to do it in a graph but not in a table.

Capture.PNG

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Pivot doesn't have dimension limit offer, So you can create like below

=if(aggr(rank(sum(Sales)),[Description offre])<=5,[Description offre])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

6 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Wiem,

In the DImension limit tab (see bellow) there's the option where you mark the top 5.

sample.png

In this case, the Recharge AMount must be your first expression, so it gets the top 5 for this amount.

Felipe

imrasyed
Partner - Creator II
Partner - Creator II

Hi,

You can first sort the values based on the expression.

Then In the Presentation Tab check the Max checkbox and give the limit to 5.

Is this the one you are wanting or anything else?

Note: Message edited by Community Moderator to correct spelling and eliminate shorthand. Please use correct spelling and do not use shorthand or slang because this is a global community and many members rely on translation tools to understand and communicate in other languages.

master_student
Creator III
Creator III
Author

i don't have dimensions limits, in my table graph propreties. see bellow :

Capture.PNG

krishnacbe
Partner - Specialist III
Partner - Specialist III

In Pivot table you can set Dimension Limits. Try with Rank() function.

Anil_Babu_Samineni

Pivot doesn't have dimension limit offer, So you can create like below

=if(aggr(rank(sum(Sales)),[Description offre])<=5,[Description offre])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
its_anandrjs

You can use any straight table chart for display Top 5 and for input value in variable you can use input box or put your default value like 5 or 10

Op4.PNG