Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a table with a column with these values. (these values are just example values. The real values are random)
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.
Solved! Go to 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
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,
Happy to help!
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.
Happy to help!
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
13 | |
10 | |
8 | |
7 |
User | Count |
---|---|
17 | |
10 | |
7 | |
6 | |
6 |