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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
NickBentley
Contributor III
Contributor III

Dividing columns in straight table when values have been accumulated

I have used the full accumulation button to calculate YTD sales by month for a number  of years.

I understand that when I then divide my these columns to work out the growth, the calculation divides the non-accumulated figure rather than the accumulated figure that appears in the table columns. 

I was wondering if there was a work around for this?

Thanks

Nick

Labels (1)
1 Solution

Accepted Solutions
QFabian
MVP
MVP

Hi @NickBentley , one option can be create the accumulation in the expression, for example :

exp1 or column(1), first aggregation  : sum(Data)

exp1 or column(2), first aggregation  but totalized : sum(total Data)

exp2 or column(3), for simple acummulation : sum(Data)  + previous(sum(Data))  or can be sum(Data)  + previous(column(1))

exp3 or column(4), % : column(1)/ column(2)

those are a few posibilities, you can create more.

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.

View solution in original post

2 Replies
QFabian
MVP
MVP

Hi @NickBentley , one option can be create the accumulation in the expression, for example :

exp1 or column(1), first aggregation  : sum(Data)

exp1 or column(2), first aggregation  but totalized : sum(total Data)

exp2 or column(3), for simple acummulation : sum(Data)  + previous(sum(Data))  or can be sum(Data)  + previous(column(1))

exp3 or column(4), % : column(1)/ column(2)

those are a few posibilities, you can create more.

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
NickBentley
Contributor III
Contributor III
Author

Thanks QFabian!

Tried it on my file and worked a treat.

 

Cheers