Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 SUM the [PlanPaid] amount when [NetworkIndicator] = "In Network".
However, I need this amount broken up by the [Date]. I tried accomplishing this by creating the expression:
=Sum(IIf(Fields!NetworkIndicator.Value = "In Network" , Fields!PlanPaid.Value , Nothing) , "Claims_Rolling12")
But this expression returns the same amount across all [Dates]:
How do I break it up so that it is grouped by the correct [Date]? I want it to return this:
Solved! Go to Solution.
Adding the "Claims_Rolling12" argument means that it's summing over that context instead of just the local context.
In this case, I think you can stick with just Sum(Fields!PlanPaid.Value) and put a NetworkIndicator filter on the entire Tablix.
Adding the "Claims_Rolling12" argument means that it's summing over that context instead of just the local context.
In this case, I think you can stick with just Sum(Fields!PlanPaid.Value) and put a NetworkIndicator filter on the entire Tablix.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
7 | |
3 | |
3 | |
2 |
User | Count |
---|---|
15 | |
11 | |
5 | |
5 | |
2 |