Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
jdubs
Helper V
Helper V

Calculated field to SUM with NULL data and multiple conditions?

I'm actually trying to so this is SSRS but was hoping someone could help here?

 

I am trying to SUM a column based on a condition but it is throwing an #error when it finds any row with NULL data.

 

What I thought would work is : =IIF(IsNothing(Fields!DollarValue.Value), 0, IIF(Fields!conditionValue.Value = "1", Fields!DollarvalueValue.Value,0))

 

       where, DollarValue = the column that contains NULL rows and conditionValue = the condition I want to filter the rows on

1 ACCEPTED SOLUTION
jdubs
Helper V
Helper V

Aaaand, of course as soon as I posted this I figured it out. Needed to specify "Nothing", instead of "0" for the true and false values. 

 

 

View solution in original post

1 REPLY 1
jdubs
Helper V
Helper V

Aaaand, of course as soon as I posted this I figured it out. Needed to specify "Nothing", instead of "0" for the true and false values. 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.