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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.