URGENT: Problem with Sum()

Stimulsoft Reports.WPF discussion
Post Reply
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

URGENT: Problem with Sum()

Post by PJoyeux »

Hi,

I have a report with 3 pages. On the first page I need some values that are calculated using Sum() in Page 2 and Page 3.

On Page 1 I have a textfield with the following content:

Code: Select all

{SumRunning(DataBand1, BusCardAbrechnung.VerdienstEC + BusCardAbrechnung.VerdienstWC) + SumRunning(DataBand2, ReisenAbrechnung.Verdienst)}
But the result is not the addition of both but just the value of the first Sum(). In this screenshot I have three textfields. The first one has the above code.
The second one:

Code: Select all

{SumRunning(DataBand1, BusCardAbrechnung.VerdienstEC + BusCardAbrechnung.VerdienstWC)}
The third one:

Code: Select all

SumRunning(DataBand2, ReisenAbrechnung.Verdienst)}
Bild 4.png
Bild 4.png (12.62 KiB) Viewed 1959 times
Why is only the first SumRunning() taken into account in the formula of the first Textfield???

Unfortunately this extremely urgent this time... :-( I have added the report.

Please show me the correct way to do this if it is not a bug...

THANKS!

Cheers,
Pascal
Attachments
Verkäuferrechnung.mrt
(169.53 KiB) Downloaded 223 times
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: URGENT: Problem with Sum()

Post by PJoyeux »

Ok, problem solved!

Using "Total.Sum()" instead of "SumRunning()" was the solution!

Thanks to the Support-Team for this VERY QUICK support! 8-)
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: URGENT: Problem with Sum()

Post by Andrew »

;) It's always a pleasure to help you!
Post Reply