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
Clint
Helper V
Helper V

Meaure counting 0 as blank?

Running into an issue filtering a measure that sums up values in one colume where the matching value in another column (same table) is not null or blank. Per the embedded image, the value for the sum of PBD should be 885 but instead I get 826. This seems to be because there are two values in the AB column that are 0 are being included in the filter of <>blank. There is one blank AB cell where the matching PBD value shouldn't be counted. the rest of the PBD values should be summed to get to the value of 885. Thoughts?
The measure I am using is:
Planned Burn total =
CALCULATE(SUM('Burndowns2'[PBD]),
FILTER('Burndowns2',[AB]<>BLANK())
)

abpbd table.PNG 

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Clint 

use the following measure with strictly equal sign ==

See: https://dax.guide/op/strictly-equal-to/#)

 

01-09-_2020_23-44-07.png

 

 

Sum of PBD = 
CALCULATE(
    SUM('Table'[PBD]),
    'Table'[AB] <> BLANK() || 'Table'[AB] == 0
)

 

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

3 REPLIES 3
FrankAT
Community Champion
Community Champion

Hi @Clint 

use the following measure with strictly equal sign ==

See: https://dax.guide/op/strictly-equal-to/#)

 

01-09-_2020_23-44-07.png

 

 

Sum of PBD = 
CALCULATE(
    SUM('Table'[PBD]),
    'Table'[AB] <> BLANK() || 'Table'[AB] == 0
)

 

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Thank you Frank.  This looks like it is working correctly.  What is the logic behind the strictly == 0 in terms of not being recognized as "not blank" by the original measure?

FrankAT
Community Champion
Community Champion

Hi @Clint 

take a look at the following link: https://dax.guide/op/strictly-equal-to/#

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

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.