Page 1 of 1

Total Sum of Detail-Band not working

Posted: Wed Mar 03, 2021 3:37 pm
by rth001
Hi,

I'm having an issue printing total sums of a Detail band.

I have 2 Bands, Master-Detail, Databand1 and Databand2

Master = one record per day
Detail = name and weight per day

On the Master, I want to calculate the sum of all Weights per day. This works (see green sum)

On PageHeader I want to make a sum of all Weights. This does not work. I have tried 3 different options (see red boxes)
result.png
result.png (23.67 KiB) Viewed 4195 times
configuration.PNG
configuration.PNG (42.01 KiB) Viewed 4195 times
What am I doing wrong thanks


ps: i also tried cSum, SumRunning and cSumRunning. These functions work for 1 page, but as soon i'm getting to another page the values are not correct anymore..

Re: Total Sum of Detail-Band not working

Posted: Wed Mar 03, 2021 8:56 pm
by Lech Kulikowski
Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.

Re: Total Sum of Detail-Band not working

Posted: Thu Mar 04, 2021 9:45 am
by rth001
Hi Lech,

Sample attached
StimulsoftSampleProjectWpf.zip
(85.78 KiB) Downloaded 217 times

Re: Total Sum of Detail-Band not working

Posted: Tue Mar 09, 2021 12:53 pm
by Lech Kulikowski
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.

Re: Total Sum of Detail-Band not working

Posted: Wed Mar 10, 2021 12:00 pm
by rth001
FYI: my provided sample is "interpretation mode", same issue also exists in Compilation note.

Re: Total Sum of Detail-Band not working

Posted: Tue Mar 16, 2021 8:27 pm
by Lech Kulikowski
Hello,

We have found the issue with the sum function and business objects. We need some time to fix it, we will let you know about the result.

Thank you.
#3743

Re: Total Sum of Detail-Band not working

Posted: Wed Mar 17, 2021 9:22 pm
by Lech Kulikowski
Hello,

Unfortunately, with business objects, there are certain technical difficulties in implementing some features.
So at the moment, you can get the necessary value, you need only in compile mode, using an expression:
{Sum(DataBand1:DataBand2,DailyLogs.Names.Weight)}

Thank you.