Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Report Builder Nested SUM ( IIF Question

I am new to SSRS and have a SUM(IIF question.   My data set contains four columns: Date, GroupID, PlanPaid, and NetworkIndicator.   Here is an example of the data set:   I am trying to SU...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    I think you can try this code to achieve your goal.

    =sum(VAL(IIF( Fields!NetworkIndicator.Value = "In Network", Fields!PlanPaid.Value, Nothing)))

    Result is as below.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.