cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nsadams87xx Member
Member

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

Accepted Solutions
Super User
Super User

Re: IF ISBLANK Return Blank

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"

4 REPLIES 4
Super User
Super User

Re: IF ISBLANK Return Blank

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"

nsadams87xx Member
Member

Re: IF ISBLANK Return Blank

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.

Super User
Super User

Re: IF ISBLANK Return Blank

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

 



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

Proud to be a Datanaut!




nsadams87xx Member
Member

Re: IF ISBLANK Return Blank

Thank you!

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 425 members 4,667 guests
Please welcome our newest community members: