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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Blanks in Conditional Column

Hi,

 

I have blanks in my column in the query and I am trying top use it in a conditional column.

 

What would the test be, it is not null as there is not a null in the column only a blank cell.

 

Thanks

 

C

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may use code below.

if Text.Trim([Column1]) = "" then
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
BradD
New Member

'null' may not work in the wizard unless the value is missing.  "blank" cells in Excel files may have the apostrophe character -- so use **** ' **** (exclude asterisks/spaces) in the wizard

Spk495
New Member

Here's what you can do:

 

Create a "Custom column" where custom colum formula =""

 

Then, reference the newly created, totally blank column in your conditional column setup and "Voila!"

 

Hope this helps!

 

Namaste.


@Anonymous wrote:

Hi,

 

I have blanks in my column in the query and I am trying top use it in a conditional column.

 

What would the test be, it is not null as there is not a null in the column only a blank cell.

 

Thank

v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may use code below.

if Text.Trim([Column1]) = "" then
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks Sam, will try that. outr of curiosity how would you reference th blank cell when using the conditgional column wizrd in Power Query

Adaric
Microsoft Employee
Microsoft Employee

I'm interested in how to do this via the Wizard as well

Use "null" in the wizard

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.