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

Measure showing blank when should show 0

I have this measure: 

Avg Days to Pay Final = IF(CALCULATE([Avg Days to Pay], 'Date'[Year]=2017)=BLANK(), CALCULATE([Avg Days to Pay], 'Date'[Year]=2016), [Avg Days to Pay]) 

 

The problem is for a number in 2017 that comes out ot be 0 that should be 0 is comung up blank because the 2016 number is coming through. If I want it to only show the 2016 data when the 2017 is BLANK what am I doing wrong?

3 REPLIES 3
Anonymous
Not applicable

Hi @hhammeren,

 

You can add "+0" at the tail of your formula to replace blank value to zero.

 

In addition, if you use matrix visual and the blank value is caused by not exist records, you can't direct replace it to zero.(the records not real contains in your table, it displayed by summary function of matrix)

 

Regards,

Xiaoxin Sheng

TheOckieMofo
Resolver II
Resolver II

I think if you wrap your if condition in ISBLANK() instead of = blank() it might work. Try that.

vanessafvg
Super User
Super User

I usually say if(isblank(measure),0, measure )

 

that should solve it @hhammeren





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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