Avatar of J C
J C
Flag for United States of America asked on

Trying to sum in group footer based on condition

I have one footer value in my report that is based on an expression

Expression:
=Fields!amount.Value - SUM(Fields!BudgetByProduct.Value)

I have a parent grouping with a footer and need to SUM based on a condition. I tried this

=Sum(IIF(Fields!IsOpt.Value = 1, Fields!amount.Value - SUM(Fields!BudgetByProduct.Value),NOTHING),"DataSet1")

I cannot use inner and outer aggregates when in association with a dataset. Does anyone know how I could compute this value?
SSRSMicrosoft SQL Server 2008Microsoft SQL Server

Avatar of undefined
Last Comment
Phillip Burton

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Phillip Burton

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23