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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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

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

Use "null" in the wizard

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.