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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
evgeniystuchalk
Partner - Creator II
Partner - Creator II

Accumulation in Pivot Table

Hello. My question on picture:

637e317e98.jpg

1 Solution

Accepted Solutions
Anonymous
Not applicable

Try this with changing underlined values according to your requirement

If(Dimensionality()=2,rangesum(above( sum(NormalValue), 0, rowno() )),aggr( rangesum(above( sum(NormalValue), 0, rowno() )),Month )  )

View solution in original post

8 Replies
OmarBenSalem
Partner - Champion II
Partner - Champion II

change your expression as follow:

if(dimensionality()=1, sum(Sales),

if(dimensionality()=2, your expression))

evgeniystuchalk
Partner - Creator II
Partner - Creator II
Author

thanks. but I need calculate month values also with accumulation

Anonymous
Not applicable

What value you want to display at months.exactly??

evgeniystuchalk
Partner - Creator II
Partner - Creator II
Author

AcumSales

MonthDimDayDimSalesAcumSales
Apr77
1

1

1
223
347
May512
118
2210
3212
OmarBenSalem
Partner - Champion II
Partner - Champion II

Try this:

if(Dimensionality()=1,aggr(rangesum(Above(aggr(Sum(CA),Month),0,RowNo())),Month), rangesum(Above( Sum(CA),0,RowNo())))

Per analogy, I would have:

Capture.PNG

Anonymous
Not applicable

Try this with changing underlined values according to your requirement

If(Dimensionality()=2,rangesum(above( sum(NormalValue), 0, rowno() )),aggr( rangesum(above( sum(NormalValue), 0, rowno() )),Month )  )

evgeniystuchalk
Partner - Creator II
Partner - Creator II
Author

Thanks!

Anonymous
Not applicable

Glad it helped you