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
BrettM
Frequent Visitor

Convert Blank to Zero

I am not getting the results I would expect from this measure where I am looking to have the result be "0" not BLANK. Where in this syntax would I enter the IF(ISBLANK statement? 

 

BeforeToday = CALCULATE(SUM(eCommOrdersByDate[Orders]), eCommOrdersByDate[Ship Date] < TODAY())
1 ACCEPTED SOLUTION
GrowthNatives
Responsive Resident
Responsive Resident

Hi @BrettM , i understand you want to show zero instead of blanks. The ways I would so it are:

1. Using IF



BeforeToday =
VAR Result = CALCULATE(SUM(eCommOrdersByDate[Orders]), eCommOrdersByDate[Ship Date] < TODAY())
RETURN IF(ISBLANK(Result), 0, Result)


2. Using COALESCE

BeforeToday = COALESCE(
CALCULATE(SUM(eCommOrdersByDate[Orders]), eCommOrdersByDate[Ship Date] < TODAY()),
0
)

 
Hope this solution helps you make the most of Power BI! If it did, click 'Mark as Solution' to help others find the right answers.
💡Found it helpful? Show some love with kudos 👍 as your support keeps our community thriving!
🚀Let’s keep building smarter, data-driven solutions together! 🚀 [Explore more] 

View solution in original post

2 REPLIES 2
GrowthNatives
Responsive Resident
Responsive Resident

Hi @BrettM , i understand you want to show zero instead of blanks. The ways I would so it are:

1. Using IF



BeforeToday =
VAR Result = CALCULATE(SUM(eCommOrdersByDate[Orders]), eCommOrdersByDate[Ship Date] < TODAY())
RETURN IF(ISBLANK(Result), 0, Result)


2. Using COALESCE

BeforeToday = COALESCE(
CALCULATE(SUM(eCommOrdersByDate[Orders]), eCommOrdersByDate[Ship Date] < TODAY()),
0
)

 
Hope this solution helps you make the most of Power BI! If it did, click 'Mark as Solution' to help others find the right answers.
💡Found it helpful? Show some love with kudos 👍 as your support keeps our community thriving!
🚀Let’s keep building smarter, data-driven solutions together! 🚀 [Explore more] 

Hariharan_R
Solution Sage
Solution Sage

Hi @BrettM 

There are mulitple ways to show 0 if blank.

 

COALESCE([Measure], 0)

 

BeforeToday = 

var _value = CALCULATE(SUM(eCommOrdersByDate[Orders]), eCommOrdersByDate[Ship Date] < TODAY())

return

COALESCE(_value, 0)

 

Option 2: IF(ISBLANK([Measure]), 0, [Measure])

 

Thanks

Hari

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