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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
LogiFons
Frequent Visitor

SUMX functions with ISBLANK?

Good evening all,

 

I am trying to learn DAX, but have now an easy problem wherefor i can't fond the solution.

 

I made below measure for a card visual.

 

Measure punten =
sumx(
    DISTINCT(
        tblDataInput[RitNr]),
        [Telling NCR Punten]
            )
 
This works fine, but the outcome is sometimes "(blank)".
Which code do i need to change the text blank to the number 0 (zero)?
 
Do i need to add "ISBLANK" and where?
I thought before [Telling NCR Punten].
But this is not the solution.
 
Can someone help me to the wright direction?
 
Thank you.
 
Gr,
 
 
1 ACCEPTED SOLUTION
rubinboer
Resolver II
Resolver II

hi @LogiFons 

 

you can wrap the expression with the coalesce function, e.g :

Some Total = Coalesce( SUMX( SomeTable,SomeTable[SomeColumn] ), 0 )
or you can add a 0 to the expression e.g :
Sum Total = SUMX( SomeTable,SomeTable[SomeColumn] ) + 0
 so with a condition it would look lie :
Some Total 2 = Coalesce( SUMX( FILTER( SomeTable, SomeTable[AnotherColumn] = "2" ), SomeTable[SomeColumn]), 0 )
 

View solution in original post

2 REPLIES 2
rubinboer
Resolver II
Resolver II

hi @LogiFons 

 

you can wrap the expression with the coalesce function, e.g :

Some Total = Coalesce( SUMX( SomeTable,SomeTable[SomeColumn] ), 0 )
or you can add a 0 to the expression e.g :
Sum Total = SUMX( SomeTable,SomeTable[SomeColumn] ) + 0
 so with a condition it would look lie :
Some Total 2 = Coalesce( SUMX( FILTER( SomeTable, SomeTable[AnotherColumn] = "2" ), SomeTable[SomeColumn]), 0 )
 

Hi Rubinboer,

 

Thank you for your fast response.

I had already tried to add the +0.

 

But i added this before the ).

This doesn't wordt.

 

The +0 after the ) does work!

 

Thank you for this solution!

 

Enjoy your evening.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors