Summing filtered rows in another databand?

Stimulsoft Reports.NET discussion
Post Reply
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Summing filtered rows in another databand?

Post by ericp »

Hello,

I was wondering if it's possible to do a SUM calculation if my if my master databand filters out rows (look at screenshot - I want to filter out the Total Prior + Total Future Costs row in my table, but still show their numbers at the bottom)

This is the formula I've been using {Sum(Projects_ProjectFunding.Prior)} and it works when the rows are visible, but the formula doesn't work once the filter is enabled the those 2 rows are hidden.

Please assist (:
Attachments
Screen Shot 2023-08-21 at 2.25.40 PM.png
Screen Shot 2023-08-21 at 2.25.40 PM.png (102.59 KiB) Viewed 556 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Summing filtered rows in another databand?

Post by Lech Kulikowski »

Hello,

Please try to use the Totals.Sum() function:
{Totals.Sum(Projects_ProjectFunding, Projects_ProjectFunding.Prior)}

Thank you.
Post Reply