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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Filter out rows with sapces inbetween

I have a table with a column with these values. (these values are just example values. The real values are random)

 

  • ABCD
  • JZIEKFFHE
  •  
  • HELLO WORLD
  • JDJKA
  • MISTER FUNNY
  • HELLO PBI

 

The records HELLO WOLRD, Mister Funny, and HELLO PBI I need to filter out. The blank record needs to stay.

I tried filtering the column when it contains a space, but then the blank value also gets filtered out.

1 ACCEPTED SOLUTION

@Anonymous 

 

You could try this

 

= Table.SelectRows(#"Changed Type", each not Text.Contains([Column]," "))

 

if the blank rows are also filtered out that means that are not real BLANKS , maybe had spaces.

 

 

Regards

 

Victor

 




Lima - Peru

View solution in original post

5 REPLIES 5
ibarrau
Super User
Super User

Hi. Let's check what power query can do. If you click on the down arrow next to the column you can find the filter with different options. Try using the "doesn't contains". Then complete it with "HELLO". It should look like this:

= Table.SelectRows(#"Last Step", each not Text.Contains([Column1], "HELLO"))

That will avoid all values with HELLO on it. If you need to be more specific try the complete phrase in doesn't contains for both cases "HELLO WORLD" and "HELLO PBI".

 

Hope this help,

Regards, 


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Anonymous
Not applicable

Hi Thank you for your reply. The example values I gave are not the real values. The words are more random and do not always start with HELLO. I've modified my example.

Sorry SSS95 but we can only help you with the data you gave us. If you want to show us more in order to help, then do it 🙂
You can still use the function to filter avoiding what the text contains as I have shown. You can find the patterns of your data to clean it up with that example.

 


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Anonymous
Not applicable

Yes indeed ibarrau, as mentioned I've modified the post so it should be more clear now 🙂

@Anonymous 

 

You could try this

 

= Table.SelectRows(#"Changed Type", each not Text.Contains([Column]," "))

 

if the blank rows are also filtered out that means that are not real BLANKS , maybe had spaces.

 

 

Regards

 

Victor

 




Lima - Peru

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.