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

Top n results in pivot table


hi all,

Can u plz tell  me how to show top n and bottom n results in pivot table.

Thanks,

Deepak

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

5 Replies
tresesco
MVP
MVP

Have you searched in the community? You would get many like:

Re: top 5 values in pivote table expressions

TOP 5 in PIVOT TABLE

jsingh71
Partner - Specialist
Partner - Specialist

Hi Deepak,

Foolow the below link. This will solve your problem.

http://community.qlik.com/docs/DOC-3862

--Jai

anbu1984
Master III
Master III

Check this app

amit_saini
Master III
Master III

Hi Deepak,

Try this:

=aggr(if(Rank(sum(Investment))<=20,Investment),Investment) (For calculating Top 20)

=aggr(if(Rank(-sum(Investment))<=20,Investment),Investment) (For calculating Bottom  20)

or you can also try this:

=rank(sum(Value)) (Rank from highest to lowest)

=rank(-sum(Value)) (Rank in reverse order)

Thanks,

AS