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

ISBLANK() not working as expected?

Hi,

 

I'd like to add condition on my report only if the content of a column table in not empty/null/blank

 

I tried to do it with a measure, but I couldn't add it as a report filter, then I went with adding a new column in my table (in Data Editor) to check if the column is blank, using the ISBLANK() function

 

As you can see here, the ISBLANK() function return false even if there is no value (empty string)

 

2020-02-24 13_39_28-Cerberus Testing KPI - Power BI Desktop.png

 

My isGroup1Blank column is defined with : 

isGroup1Blank = ISBLANK('cerberus campaign'[Group1])
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

First, BLANK value and "" is not always the same

Second, as you use measure, not a column it could return unexpected result because of row-context

try a caclulated column like yours above or more sophisticated option

= IF(ISBLANK('cerberus campaign'[Group1]) || 'cerberus campaign'[Group1] = "", true(), false())

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @Anonymous 

First, BLANK value and "" is not always the same

Second, as you use measure, not a column it could return unexpected result because of row-context

try a caclulated column like yours above or more sophisticated option

= IF(ISBLANK('cerberus campaign'[Group1]) || 'cerberus campaign'[Group1] = "", true(), false())

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi @az38 !

 

That worked for me!

 

Thanks a lot

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.