Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

cum sum from below

Hello!

Have some problem with calculation cumulative sum from below.

There is neccessary result in attached example

i calculate cumulative sum from top by:

rangesum(Above(sum(sales),0,rowno()))

but don't know how to calculate cum sum from below

Thanks for all advices!

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file for solution, wrong expression name in the set analysis earlier.

Regards,

Jagan.

View solution in original post

9 Replies
tresesco
MVP
MVP

Instead of Above() use it's counter part Below().

Or

Use Above() with negetive offset. Like : =Above(Sum(Sales), -2,0)

its_anandrjs

Try with

From above

Rangesum(Above( Sum(sales) ),0, Rowno() )

and for Below or reverse accumulation

Rangesum(Below( Sum(sales) ),0, Rowno() )

jagan
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file for solution.

Regards,

Jagan.

Anonymous
Not applicable
Author

is your example correct?

i need to show cum sum for each value from below.

In you file you calculate only total cum sum

Anonymous
Not applicable
Author

and you calculate only two values every time- previous and next.. i think it's not cum sum

Anonymous
Not applicable
Author

it's working some strangely...

from value 1/5/2014 calculation is not correct !

Anonymous
Not applicable
Author

it's working some strangely...

from value 1/5/2014 calculation is not correct !

jagan
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file for solution, wrong expression name in the set analysis earlier.

Regards,

Jagan.

Anonymous
Not applicable
Author

it's what i need!

thank you!))