Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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