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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Harry_Tran
Helper III
Helper III

Replace blank with 0 in matrix

Hi everyone,

Does anyoe know how to replace blank with 0?

I have try +0, if(isblank, if( = blank(),0) but it not work.

TIA

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Harry_Tran ,

 

I think you can convert quickly in the power query.

vhenrykmstf_0-1645151866354.png

Or try the formula like bleow

Column = IF('Table'[Col_1]=BLANK(),0,'Table'[Col_1])

vhenrykmstf_1-1645151982421.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your feedback.


Best Regards,
Henry


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

View solution in original post

5 REPLIES 5
PijushRoy
Super User
Super User

Hi @Harry_Tran 

Please try
IF(Your Measure = 0, "0", Your Measure)
or
IF(Your Measure = 0, " "&"0", Your Measure)
or

COALESCE(Your Measure,"0")

If you have any question, please let me know.
If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos

Regards
Pijush




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





v-henryk-mstf
Community Support
Community Support

Hi @Harry_Tran ,

 

I think you can convert quickly in the power query.

vhenrykmstf_0-1645151866354.png

Or try the formula like bleow

Column = IF('Table'[Col_1]=BLANK(),0,'Table'[Col_1])

vhenrykmstf_1-1645151982421.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your feedback.


Best Regards,
Henry


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

Jihwan_Kim
Super User
Super User

Hi,

I am not sure without seeing your datamodel, but please try to create a measure with using double-equal sign "== blank()".

I happened to face some of the situations that a Blank shown on a visualization is not actually a blank. In that case, I tried using "== blank()", instead of using "=blank()"  

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
amitchandak
Super User
Super User

@Harry_Tran , Simply add +0

or coalesce([Column/measure],0)

 

But this is more successful ,when you group by/axis/row from dimension

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  Can you elaborate on this? I'm facing the issue where when I use the coalesce or IF(ISBLANK approaches, many extraneous rows are added to my table visualizations.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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