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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors