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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jchoucq
Partner - Creator III
Partner - Creator III

Cumulative Sum with many dimensions and expression sorted

Hi,

in a straight table, i've got 3 dimensions and an expression which i sort descending. Everything is ok.

Then, i would like, to have another column which must be the cumulative sum.

I must keep the sort order and have a cumulative sum from the first row to the last one.

Whatever the solution i try (Full Accumulation, Above, SumRange ..), it doesn't work !

Does anyone have an idea ?

You can look at my attached qvw.

Regards,

Johann

1 Solution

Accepted Solutions
lenka_kruse
Partner - Contributor III
Partner - Contributor III

Hi,

I got at least the cumulation by changing the expression to this:
rangesum(above(total cumul), sum(CA))
but I don't know why the sorting won't work - looks to me like a bug, since the sorting is shot to hell as soon as the second expression is added/activated. I'm sure that's not supposed to happen

Good luck, Lenka

View solution in original post

3 Replies
lenka_kruse
Partner - Contributor III
Partner - Contributor III

Hi,

I got at least the cumulation by changing the expression to this:
rangesum(above(total cumul), sum(CA))
but I don't know why the sorting won't work - looks to me like a bug, since the sorting is shot to hell as soon as the second expression is added/activated. I'm sure that's not supposed to happen

Good luck, Lenka
jchoucq
Partner - Creator III
Partner - Creator III
Author

Thanks a lot, lenka. Your expression is the correct one.

Moreover, By using the sort tab and the expression to sort in each dimension i get the right sorting.

Johann

Not applicable

Do you have any hint for eralising the same, but in a line chart?

2 dimensions

Date

Sales Group

1 expression

sum(Quantity)

I would like the chart to look like, besides a line for each SG, a line on top which is the sum of all the quantity of each SG.

Thank you!