Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Inter-Record Chart functions

Hi, How would I calculate the Cumulative % column please? So that Cumulative % = (The previous row value, Column - 1) + (This row, Column - 1). Please see attached example. Thanks.

5 Replies
pat_agen
Specialist
Specialist

hi,

in a straight table copy and paste the expression from column "Cont%", rename it to "Cum%" and at the bottom of the expressions tab tick on the radio button "Full Accumulation".

Not applicable
Author

Thanks for your reply. I've done that but the Cum% is now equal to the Cont%. My expression for Cont% is:

(

(sum(if (InYear ([Sale Date], Today(), (zYearLast - Year(Today()))), [Sale Value]))) / sum(total(if (InYear ([Sale Date], Today(), (zYearLast - Year(Today()))), [Sale Value])))) * 100

pat_agen
Specialist
Specialist

hi,

my error. your expression is fine. my solution works if there is a single dimesion in the report.

You can see that in your second example where the accumulation works for the stores in the Inland area which are supermarkets.

Given your data this coudl be a possible workaround.

Working on the assumption that each store can only be in one area and of one type then instead of having these attributes as columns/dimensions put them in as expressions. for this use only(Area), only(TypeOfStore).

Your report will then have a single dimension and the accumulation should work for the whole dataset.

how is the weather down there?

Not applicable
Author

Thanks a lot, that did the trick! ... Sunny, but winter's on its way. So it's 24C instead of 30C. Cheers.

christian77
Partner - Specialist
Partner - Specialist

Try these ones:

This one accumulates columns by row (or otherwise)

RangeSum(last($(vSaldo),1,(noofcolumns()-columnno()+1))

This one accumulates rows by column (or otherwise)

RangeSum(Above(Total $(vSaldo),0,rowno(Total)))