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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sandra_p
Helper I
Helper I

Power Query row filtering not working

I have copied a table and in this new table I want to filter out rows, that have "History field" = status

I have applied filter:

formula.png

But in "History field" I can still see both values - status and Sprint

history-field.png

2 ACCEPTED SOLUTIONS

Hi @sandra_p

Have you tried trimming your History column in Power Query? Select that column, go to Format>Trim then try filtering after this step.

Pete


Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

amitchandak
Super User
Super User

@sandra_p , Try text.contains to check

https://docs.microsoft.com/en-us/powerquery-m/text-contains

 

and text.trim to trim the spaces

https://docs.microsoft.com/en-us/powerquery-m/text-trim

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@sandra_p , Try text.contains to check

https://docs.microsoft.com/en-us/powerquery-m/text-contains

 

and text.trim to trim the spaces

https://docs.microsoft.com/en-us/powerquery-m/text-trim

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
az38
Community Champion
Community Champion

Hi @sandra_p 

for me your statement works pretty good.

make sure you have refreshed the preview.

make sure all your values in Hostory field have one encoding

check how filtered data shows in the report mode


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
sandra_p
Helper I
Helper I

I must mention, that I tried using "equals" as well.

Hi @sandra_p

Have you tried trimming your History column in Power Query? Select that column, go to Format>Trim then try filtering after this step.

Pete


Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Anonymous
Not applicable

Thanks @sandra_p ..Trimming really helped me..Trimming really helped me in filtering out the data

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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