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
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
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.