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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors