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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors