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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I am making quite a few matrix tables similar to the one below. I want to replace the blank fields with '0'. However, when I try to use different calculated measures, nothing happens or I get an error.
'
1) Number of Faculty = IF(CALCULATE(ISBLANK(COUNT('FT-cal-acad-faculty only'[Faculty Rank]))),0,COUNT('FT-cal-acad-faculty only'[Faculty Rank])). nothing happens
Your 2nd measure is missing the ) after the +0. But why can't you just use this expression?
NewMeasure = COUNT('FT-cal-acad-faculty only'[Faculty Rank]])+0
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Its giving me the error 'A function 'CALCULATE' has been used in a True/False expression that is used as a table filter expression. This is not allowed'
When i posted before, someone told me to create a separate table and then use it in this measure. here's the table i created (called Replacing 0's) which I reference at the end of the measure you corrected for me :
I'm not sure if this separate table is needed and if I can just use a measure referencing my main dataset (i.e. is there a way to not use the 'Replacing 0's table)?
try
measure =
IF (
ISBLANK ( COUNT ( 'FT-cal-acad-faculty only'[Faculty Rank] ) ),
0,
COUNT ( 'FT-cal-acad-faculty only'[Faculty Rank] )
)
Proud to be a Super User!
It didn't do anything, same as my option 1. it just again displays the same values without replacing any blank fields with '0' (i get the exact same table as in the picture above, with blank fields)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.