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.
Hello powerbi community,
I'm trying to display a 0 value instead of blank, when record count from a related table does not give any values.
Ex. Table 1 (Parent) has no related records in Table 2 (Child), so count is blank. But, id like to show 0's in a matrix table or visual.
Ex. Adults (Table 1) who dont have kids (Table 2)
I tried creating a measure in Table 1 that says, but It didnt give me a proper result:
IF ( ISBLANK (CALCULATE ( COUNTROWS(RELATEDTABLE(Table2)))), 0 , CALCULATE ( COUNTROWS(RELATEDTABLE(Table2))
Any suggestions on what to do here?
Thank you
Solved! Go to Solution.
The original formula worked with a column instead of a measure. Still learning the difference...
The original formula worked with a column instead of a measure. Still learning the difference...
@VijayP thank you. I tried putting a +0, but it did not work.
I tried:
IF ( ISBLANK (CALCULATE ( COUNTROWS(RELATEDTABLE(Table2)))), 0 , CALCULATE ( COUNTROWS(RELATEDTABLE(Table2)) +0
How can one show that ID #1 from Table 1 has 0 (NOT BLANK!) records from child Table 2. There must be a way.
I've been turning around in circles.
Thanks,
After entire formula just add +0 , you will get required result
Proud to be a Super User!
many thanks
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.