Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rank In Pivot table

Hi Guys,

I have a pivot with dates on the top, as groupers, & below them you have paid amounts.
Something like :Untitled.png

I have figured out the way to show only top 5 dim based on the Paid Amount, but this top 5 list is on the Total Paid amount(Paid for 2012+paid for 2013....).
What I want is to have the top 5 dim on the Paid amounts of a single year(say 2015).
So the pivot is as displayed but the top 5 dim are based on the top 5 paid amounts for 2015 & not the total paid amounts.
Formula used for the top 5 is:

=aggr(if(rank(sum(paidamount))<6,dim, 'Other'),Field1,dim)

                    //dim is ranked on the paidamount & aggregated by Field1

Please advise.

Thanks in advance!!

Labels (1)
1 Reply
beck_bakytbek
Master
Master