hi Ven G,
since you mentioned that this EndingBalance is in the Details section, i'm assuming that it is a database field and not a printtime formula.
if it is a field, then create a new formula with syntax similar to this:
whileprintingrecords;
if not onfirstrecord
then numbervar peb:= previous({your table. your ending balance field});
now the formula will bring back the previous value for ending balance.