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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.