Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
bharani8
Creator III
Creator III

Cumulative Sort

Hi Team - i need to sort the value in descending order by "Amt (In USD)" for the attached qlikview doc. Plz help

1 Solution

Accepted Solutions
techvarun
Specialist II
Specialist II

Check the attached

View solution in original post

8 Replies
devarasu07
Master II
Master II

Hi,

Front end your can try with sortable agg feature

The sortable Aggr function is finally here!

back end script method,

Cumulative:

LOAD *,

  RangeSum(Peek('run_sum'), [USD (in $M's)]) as run_sum

Resident Temp

Order By [USD (in $M's)] desc;

techvarun
Specialist II
Specialist II

Check the attached

bharani8
Creator III
Creator III
Author

TY Varun! This is what i was looking for... Can u explain what u did to achieve this outcome?

bharani8
Creator III
Creator III
Author

Will give a try on this.. Thanks!!

techvarun
Specialist II
Specialist II

Hi Bharani,

I applied the sort by expression (Sum([USD (in $M's)])) on your lowest dimension (Sales Product).

in this case the sum of [USD (in $M's)] automatically grouped and sorted per sales product and we can set it appear ascending or descending as per requirement.

Thanks,

Varun.

bharani8
Creator III
Creator III
Author

ok Tks! Understood.. I have a case, where i dont have the lowest dimension.. What will be the way to sort for that?

bharani8
Creator III
Creator III
Author

stalwar1‌ Can you plz help on sorting while we have more than 2 Dimensions in Straight table..

sunny_talwar

Not sure what you need help with? Is this a new question? This thread seems to be resolved already