Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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