Total Sum of Detail-Band not working

Stimulsoft Reports.WPF discussion
Post Reply
rth001
Posts: 32
Joined: Fri May 15, 2020 9:17 am

Total Sum of Detail-Band not working

Post 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 3828 times
configuration.PNG
configuration.PNG (42.01 KiB) Viewed 3828 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..
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Total Sum of Detail-Band not working

Post by Lech Kulikowski »

Hello,

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

Thank you.
rth001
Posts: 32
Joined: Fri May 15, 2020 9:17 am

Re: Total Sum of Detail-Band not working

Post by rth001 »

Hi Lech,

Sample attached
StimulsoftSampleProjectWpf.zip
(85.78 KiB) Downloaded 207 times
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Total Sum of Detail-Band not working

Post by Lech Kulikowski »

Hello,

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

Thank you.
rth001
Posts: 32
Joined: Fri May 15, 2020 9:17 am

Re: Total Sum of Detail-Band not working

Post by rth001 »

FYI: my provided sample is "interpretation mode", same issue also exists in Compilation note.
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Total Sum of Detail-Band not working

Post 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
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Total Sum of Detail-Band not working

Post 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.
Post Reply