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
COWA
Frequent Visitor

Search a body of text for a set of keywords and then return a category

Sorry, new to PBI and tried searching for help but couldn't find this exact problem.

 

I have Feedback, which is just a body of text StoreFeedback[text]

I then have a table with categories and keywords.

Feature[features]Feature[keywords]
Category 1red, blue, green
Category 2black, white
Category 3purple
Category 4dark orange, light gray, magenta

 

I want to be able to create a new column and if one of the keywords are found in Feedback[body], return the category. If no keywords are found, just a simple no match works.   

 

Currently I have :

 

Features Mentioned =
var _1 = maxx(filter(Features,
SEARCH(Features[Features], StoreFeedback[text],,0)>0),Features[Features])
return
if(isblank(_1), "No match",_1)

 

But of course this only checks the features, not the keywords.  if anyone knows how to modify so it goes through the keywords instead and returns the feature, it would be appreciated.
 
 
2 REPLIES 2
amitchandak
Super User
Super User

@COWA , Refer if one of the two can help

 

Power BI- Text Part slicer to filter/search text - https://youtu.be/MKKWeOqFG4c

 

Text Filter Slicer and how to search on Multiple columns: https://youtu.be/RbeZRJ3uAZE

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

Sorry, wasn't too clear in my original problem description I think.  I updated.

Helpful resources

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