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: 
ali_hijazi
Partner - Master II
Partner - Master II

Help in sortable Aggr

Hello got a pivot table showing the open amount for each customer

and in another column I want to show the cumulative amount

the cumulative amount I'm using Aggr with sorting but it is not working properly

check attached document and advise please

as the cumulative amount should start with 82.5 and so on...

I can walk on water when it freezes
12 Replies
ali_hijazi
Partner - Master II
Partner - Master II
Author

if I sort by invoice date then documents with the same date will have zero as cumulative amount

please advise

I can walk on water when it freezes
ali_hijazi
Partner - Master II
Partner - Master II
Author

how can I sort first by date and then by doc number in the structured parameters?

I can walk on water when it freezes
sunny_talwar

May be create a new field in the script using the combination of Invoice Date and Doc No. Something like this

Floor([Due Date]) + [Doc No.]/1E10 as NewField

and then use NewField in your Aggr() function