values depending on the previous row

Stimulsoft Reports.WPF discussion
Post Reply
willem.wijnant
Posts: 7
Joined: Wed Mar 18, 2015 1:53 pm

values depending on the previous row

Post by willem.wijnant »

I have a problem with StimulSoft:

I read the data from a database table; the debet and credit values. I want for each row compute the saldo. This depends on the saldo of the previous row, and the new debet and credit values:

saldo = saldo(previous row) + debet – credit;

Or : saldo = Sum(debet values until now) – sum (credit values until now)

How do I do this ?

Best Regards,

Willem Wijnant
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: values depending on the previous row

Post by HighAley »

Hello, Willem.

Please, try to use expression like next

Code: Select all

SumRunning(debet - credit)
To give you more detailed answer we need to see your report template with sample data.

Thank you.
willem.wijnant
Posts: 7
Joined: Wed Mar 18, 2015 1:53 pm

Re: values depending on the previous row

Post by willem.wijnant »

It did solve the problem;

Thank you very much.

Willem
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: values depending on the previous row

Post by Jan »

Hello Willem,

Please contact us if you need any help!

Thank you.
Post Reply