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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

DAX reading 0 as Blank and Vice Versa

I am using  an IfError statement in DAX

"IFERROR('PFEP'[Actual Inventory Level]-'PFEP'[Planned Inventory Level], BLANK())"

However, when Planned Inv. Level is blank, it is not being read as an error and therefore does not retrun blank but performs the subtraction as if Planned Inv. Level is 0 which I do not want it to do.

I tried fixing it by putting "IF(OR('PFEP'[Actual Inventroy Level]=BLANK(), 'PFEP'[Planned Inventory Level]=BLANK()), BLANK(), ...."

But in this case, 0 is read as blank for Actual and planned inventory level.

 

How can I solve thsi issue? 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

Use this judgment condition alone, otherwise it does not work.

Column = IF('Table'[Value]=BLANK(),0,'Table'[Value])
Column = IF('Table'[Value]=0,BLANK(),'Table'[Value])

vhenrykmstf_0-1665737663300.png

 

not work:

vhenrykmstf_1-1665737740755.png


If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

Use this judgment condition alone, otherwise it does not work.

Column = IF('Table'[Value]=BLANK(),0,'Table'[Value])
Column = IF('Table'[Value]=0,BLANK(),'Table'[Value])

vhenrykmstf_0-1665737663300.png

 

not work:

vhenrykmstf_1-1665737740755.png


If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.