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
Anonymous
Not applicable

IF is not BLANK return the same value_Issue

Dear All,

I have the table below in which i created a column for new clients. If the cell has sme value it should be copied, and in case it's empty "0" should be added.

But my measure is not working, what's my mistake?

New customers (if error) = IF('New Customers'[New Clients]= BLANK(),0)FALSE'New Customers'[New Clients])
 

ANE2CAbo_1-1649750537070.png

 

Thanks!

 

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

I think your column should be

New customers (if error) = IF('New Customers'[New Clients]= BLANK(),0,'New Customers'[New Clients])

 

If you're just replacing blank with 0 you could do also this is power query using 'replace values'

View solution in original post

2 REPLIES 2
AllisonKennedy
Super User
Super User

@Anonymous  You have an extra 0)FALSE

your measure:

New customers (if error) = IF('New Customers'[New Clients]= BLANK(),0)FALSE'New Customers'[New Clients])

 

should be: 

New customers (if error) = IF('New Customers'[New Clients]= BLANK(), 'New Customers'[New Clients])


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

AntonioM
Solution Sage
Solution Sage

I think your column should be

New customers (if error) = IF('New Customers'[New Clients]= BLANK(),0,'New Customers'[New Clients])

 

If you're just replacing blank with 0 you could do also this is power query using 'replace values'

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