hi Ven G,
you can store those values in an array to be used later.
create a new formula like the following to place in the Details section.
whileprintingrecords;
numbervar array eb;
numbervar c:= c + 1;
redim preserve eb[c];
eb[c]:= {@your ending balance formula};
if c > 1 then eb[c-1];
this formula will bring back the previous ending balance.