I want to calculate sum on a column that has been calculated using the Previous() function. There is a measure field called <Cell Count> and i have created another column in report which has formula Previous(<cell count>). There is a section break in the report based on another dimension. Now, the Previous(<cell count>) works fine with the section breaks, but when i do sum(previous(<cell count>)), it also adds the last value of <cell count> from the previous section break. How to avoid this problem?
An example of the problem:
Section break----level one
Dimension Previous(cell count) Cell count
-----------------------------------------------
xy 2
xz 2 3
yr 3 5
----------------------------------------------
sum: 5 10
Section break----level two
Dimension Previous(cell count) Cell count
-----------------------------------------------
er 1
we 1 2
ee 2 3
-----------------------------------------------
sum: 8 <-Problem here 6
Note that the sum for "Previous(cell count)" for "Section break----level" two should be 2+1 = 3 but BO takes it as 2+1+5 = 8 where the 5 is the "cell count" of the previous column from the previous section.
How should i avoid taking the 5 (the value from the previous section) in this addition?
I tried defining contexts but unable to get the required results.
Any ideas on this would be of great help to me.
Thanks in advance
Bin
An example of the problem:
Section break----level one
Dimension Previous(cell count) Cell count
-----------------------------------------------
xy 2
xz 2 3
yr 3 5
----------------------------------------------
sum: 5 10
Section break----level two
Dimension Previous(cell count) Cell count
-----------------------------------------------
er 1
we 1 2
ee 2 3
-----------------------------------------------
sum: 8 <-Problem here 6
Note that the sum for "Previous(cell count)" for "Section break----level" two should be 2+1 = 3 but BO takes it as 2+1+5 = 8 where the 5 is the "cell count" of the previous column from the previous section.
How should i avoid taking the 5 (the value from the previous section) in this addition?
I tried defining contexts but unable to get the required results.
Any ideas on this would be of great help to me.
Thanks in advance
Bin