JayC????
I was very surprised that it worked .Because when I wrote my formula it worked like adding a running total but "adding a running total doesn't solve your problem."
Because when adding running total the result will be
Amount Running total
2 2
3 5
4 9
etc.
In order to obtain the cumulative sum.
Amount Running total
2 0
3 2
4 5
You will have to use formulas.
Since I want my cumulative sum from 0 I must create something tricky.
First on your "report header" add this formula :
whileprintingrecords;
numbervar y:=0;
Then on your section where amount fields lies add this formula :
Whileprintingrecords;
numbervar x;
numbervar y;
numbervar z;
if (y=0)then
(
y:=y+1;
z:=z+{your database field};
)
else
x:=x+z;
z:={your database field};
x
This formula will result the following.
Amount Running total
2 0
3 2
4 5
As a summary formulas are a little bit tiring BUT they are very flexible.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.