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
FZOU
Helper IV
Helper IV

Test Blank Value

Hello,

 

I'm testing a simple column to test blank values on column but i can't get what i want here is an exp :

I had left a blank row to see how it works but without result

 

TestBlank.PNG

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Hmm, what happens if you use

TestIsBlank = IF([Column2] = "";"A";"B")

Could you share your PBIX?

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@FZOU , try

if(coalesce(Table[Column2],"")="","A","B")

Greg_Deckler
Super User
Super User

Hmm, what happens if you use

TestIsBlank = IF([Column2] = "";"A";"B")

Could you share your PBIX?

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_DecklerIt works fine but why the ISBLANK function doesn't work properly ? maybe i'm not use it correctly 

I have seen this before, for whatever reason how you created it, it isn't really "blank" as in null. I'm actually not certain why it happens but I have run into it before and had to work around it.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
az38
Community Champion
Community Champion

@FZOU 

blank and empty value are not always the same

1. make sure you have no service symbols in your column (execute trim operation in Power Query)

2. try statement like

= IF(ISBLANK(table[Column]) || table[Column]=''; "a"; "b")

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

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.