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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Filter Table by Text Found Within Field

Hi All!

So I have a table that contains two fields. One field is a text field where I am trying to extract an alphabetized list of keywords. The other field is a value associated with the text. The image below should help describe:
Power BI Help Photo.JPG

I would like to be able to filter the source text by the keywords that are found inside of it. It doesn't need to have any particular order, but all keywords must be found inside of the text. In the example above, you should not be able to filter by just "dog".

The keywords are always led by "keyword=", are separated by commas, and always end with a &. Does anyone know of any way that I can organize my data so that I can filter in a way that order does not matter? 

Thanks!!

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

I'm not sure I understand what you want to achieve - do you want the filter to work as the visual or in the data transformations?

 

for the transformations you could try with extracting the keywords in M  as a list and then filtering with List.ContainsAll

https://docs.microsoft.com/en-us/powerquery-m/list-containsall

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

1 REPLY 1
Stachu
Community Champion
Community Champion

I'm not sure I understand what you want to achieve - do you want the filter to work as the visual or in the data transformations?

 

for the transformations you could try with extracting the keywords in M  as a list and then filtering with List.ContainsAll

https://docs.microsoft.com/en-us/powerquery-m/list-containsall

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.