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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
christeddy
Regular Visitor

Power Query Keeps FIltering Rows Instead of Deleting them

I'm working on a capstone project and there is a column that determines whether an entry is valid. I have looked for ways to delete the rows containing invalid entries as they are not necessary. Online, people keep saying "filter" but that isn't a permanent solution. I did use Excel to delete them eventually, but I don't want to believe that I can't do that with Power BI.

Also, the app doesn't get rid of null/blank values in another row. I have tried removing empty and I still get null values. I changed the data type from Numbers to Text, and now I just get blank values. I created a new column with the length, so I can then delete those that are equal to 0, but it isn't working. It keeps filtering instead of deleting.

I never knew data transformation could be this hard.

Screenshot 2026-04-08 123657.png

1 ACCEPTED SOLUTION
pcoley
Continued Contributor
Continued Contributor

@christeddy 
Please try removing all non printable and extra characters first:
1. Select the Column you want to filter; select type: text in that column.
2.1 Transform> Format> Trim

2.2 Transform> Format > Clean
3. Filter empty cells

pcoley_1-1775690484432.png

 


If this does not work please try Adding a Column where you can select the characters from the column you want to filter. 

pcoley_0-1775691517516.png

4.1 Insert the next sentence if you want to keep letters and numbers:     
Text.Select([YourColumn], {"a".."z", "A".."Z", "0".."9"})

Finally filter empty cells.

I hope this helps. if so please mark it as a solution. Kudos are welcome.

4.2 Inster this sentence if you only want to keep numbers: 
Text.Select([YourColumn], {"0".."9"})


Regards, PColey 
I hope this helps.
Please Mark my post as a solution if it helped to resolve your issue.
Kudos are Welcome!
Please do let us know if you have any further queries.

View solution in original post

4 REPLIES 4
pcoley
Continued Contributor
Continued Contributor

@christeddy 
Please try removing all non printable and extra characters first:
1. Select the Column you want to filter; select type: text in that column.
2.1 Transform> Format> Trim

2.2 Transform> Format > Clean
3. Filter empty cells

pcoley_1-1775690484432.png

 


If this does not work please try Adding a Column where you can select the characters from the column you want to filter. 

pcoley_0-1775691517516.png

4.1 Insert the next sentence if you want to keep letters and numbers:     
Text.Select([YourColumn], {"a".."z", "A".."Z", "0".."9"})

Finally filter empty cells.

I hope this helps. if so please mark it as a solution. Kudos are welcome.

4.2 Inster this sentence if you only want to keep numbers: 
Text.Select([YourColumn], {"0".."9"})


Regards, PColey 
I hope this helps.
Please Mark my post as a solution if it helped to resolve your issue.
Kudos are Welcome!
Please do let us know if you have any further queries.

That worked, but i got another problem lol. Thank You so much.

 

pcoley
Continued Contributor
Continued Contributor

@christeddy we are here to help each other. please create a new post with the problem and someone in the community will try to resolve the new issue.

Regards, PColey 
I hope this helps.
Please Mark my post as a solution if it helped to resolve your issue.
Kudos are Welcome!
Please do let us know if you have any further queries.
lbendlin
Super User
Super User

A filter in Power Query truly removes the rows.  A filter in Power BI UI or in DAX "only" hides those rows.

 

Note that null/BLANK() is not the same as an empty string.  Also note that you may see (blank) when you have referential integrity violations.  That is by design.

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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