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

Top 5 sub totals in qliksense

Hi all,

I'm facing an issue where in to get sum of top n values. I'm able to restrict the values while showing but coming to summing the top n values, Sum is calculated to all the values. Request you to give me an idea how to achieve it.

4 Replies
Anil_Babu_Samineni

Will you able to provide sample application

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
Anonymous
Not applicable
Author

find the attachment,

In this if u see for sub Category wise i need top 3 and sum of that 3(66+45+65) in ABC Category,

here it is taking total sum instead of 3.

Anonymous
Not applicable
Author

with

aggr(if(rank(sum(Qty))<=5,Sub Category)

,Category,Sub Category)  expression i am getting the results,

but for some categories it is showing 2 sub categories even values are not same.

sunny_talwar

There is no sheets in the attached file... have you attached the right file?