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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors