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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.