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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Full Accumulation in Expression

Hi, there.

I'm a newbie in QV and cannot solve my problem with full accomodation in expression.

Expression looks like this, crucial dimension is Seria:

sum(aggr(RangeSum(above(sum({$<[Kód]={D01TSČ}>}Čiastka),0,RowNo(TOTAL))),Obdobie,Séria,Fáza,Kód,Rok))

Snap_2014.07.09 10.35.35_002.jpg

I need cumulatives like this BUT IN EXPRESSION !

Snap_2014.07.09 10.39.16_003.jpg

Thanks in advance.

Duski

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Capture.PNG.pngMy friend, I said two different expressions... not in one...

View solution in original post

35 Replies
MK_QSL
MVP
MVP

sum(aggr(RangeSum(above(TOTAL sum({$<[Kód]={D01TSČ}>}Čiastka),0,RowNo(TOTAL))),Obdobie,Séria,Fáza,Kód,Rok))

Not applicable
Author

Edited.

Thank You, Manish, for your answer, but your suggestion returns incorrect results 😞

Snap_2014.07.09 11.21.05_007.jpg

Source data look like this:

Series Plan

Snap_2014.07.09 11.22.06_008.jpg

Series Uctovnictvo:

Snap_2014.07.09 11.23.08_009.jpg

Another suggestion ?

Thanks in advance

Duski

MK_QSL
MVP
MVP

Provide sample data pls...

Not applicable
Author

EXCEL with source data attached.

Thank you in advance, Manish.

Duski

MK_QSL
MVP
MVP

Try

RangeSum(above(TOTAL sum({$<[Kód]={D01TSČ}>}Čiastka),0,RowNo(TOTAL)))

or

sum(aggr(RangeSum(TOTAL above(sum({$<[Kód]={D01TSČ}>}Čiastka),0,RowNo(TOTAL))),Obdobie,Séria,Fáza,Kód,Rok))

Not applicable
Author

Thank you, Manish, but ...

- first formula returns same data as above (not correct)

Snap_2014.07.09 12.23.05_010.jpg

- second formula returns no data 😞

Did you simulate my chart with my source data with correct result ?

Thanks in advance.

Duski

MK_QSL
MVP
MVP

What are the two expressions you are using in Bar Chart?

Bar Char

Dimension

Obdobie

Expression

RangeSum(above(TOTAL sum({$<[Kód]={D01TSČ}>}Čiastka),0,RowNo(TOTAL)))

is working with me

Not applicable
Author

And the result looks like this ?

Snap_2014.07.09 10.39.16_003.jpg

MK_QSL
MVP
MVP

I haven't used aggr...