Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi i have situation where my matrix is not allowing me to replace zero's instead of blanks .
please check the below calculation and screenshot.
DAX Calculation # Subjects = var sub = [Subjects]
var coun = [Countries]
return IF(ISBLANK([Countries]),sub,IF(ISBLANK(sub),0,sub))
Blank replacing with 0
Regular count without zero
I'm not following this, seems like your screen shot shows blanks replaced by 0's
@Greg_Decklerin a matrix if i even i replaced with Zero that countries which are not involved also showing zero . can i know the dax formulae for it to make it work.
Going to need to see example source data. I have no idea what you have in your data for columns like Subject and Countries so difficult to tell you what is going on.
@Greg_DecklerI just sent private message to you please acess the link. you can aslo check the calculation .
Hi @chotu27,
Did you try to replace the 0 with BLANK() like this?
# Subjects = VAR sub = [Subjects] VAR coun = [Countries] RETURN IF ( ISBLANK ( [Countries] ), sub, IF ( ISBLANK ( sub ), BLANK(), sub ) )
Best Regards,
Dale