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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nsadams87xx
Helper III
Helper III

IF ISBLANK Return Blank

Hello,

 

I have a column I created that checks to see if there are blanks in my reference column and if there are, they should be replaced with the word Unknown, otherwise use the reference column result.  Here's my Dax.  The blanks are still showing in my table.  Any ideas as to why this is happening?

 

IsBlank.JPGIsblank table.JPG

1 ACCEPTED SOLUTION
Cmcmahan
Resident Rockstar
Resident Rockstar

Depending on your data source, they might not actually be BLANK().  They could be empty strings or a space or something. 

 

I would fix this with Power Query instead of DAX.  In the home tab, click Edit Queries, and then find the Provider column.  Find a cell with a blank Provider, right click and select "Replace Values", replacing empty strings with "Unknown"

View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @nsadams87xx ,

 

This "error" is related with the way dax handles blanks, check this post with an explanantion.

 

You should use the following code instead:

 

Provider correcting blanks = IF(CSM_ED_SATISFACTION_20190606[Provider] = BLANK();"Unknow";CSM_ED_SATISFACTION_20190606[Provider])

Believe I have copy your table name correctly if not please adjust.

 

Regards,

MFelix

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thank you!

Cmcmahan
Resident Rockstar
Resident Rockstar

Depending on your data source, they might not actually be BLANK().  They could be empty strings or a space or something. 

 

I would fix this with Power Query instead of DAX.  In the home tab, click Edit Queries, and then find the Provider column.  Find a cell with a blank Provider, right click and select "Replace Values", replacing empty strings with "Unknown"

Okay thanks.  I was thinking that too, this is a CVS file and honestly I really am not sure what is exactly in those cells.  I'll do what you suggested.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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