Skip to Content
0
May 05, 2014 at 11:09 AM

Passing a default value & calculation

46 Views

Hello All,

I need to calculate Previous Amount

Previous = PreviousBill + Previous

Values for "PreviousBill" are coming from the table.
"Previous" field doesnt exit in any of the table.

Initial value to Previous should be passed as '0'.

For example :

Previous = 20 + 0 = 20
Previous = 30 + 20 = 50

Previous = 40 + 50 = 90

Previous = 50 + 90 = 140 and vice versa

How to calculate? Please provide me the logic

Best Regards

Sandeep