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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rob_Reg_777
New Member

how to get keywords bundled

Hi,

 

I have the following tables:

 

Table 1:

 

Rob_Reg_777_0-1684813555238.png

 

Table 2:

Rob_Reg_777_1-1684813592187.png

 

I need to match the keyword within the short_description column and as a result the group respectively. I have used filter & containstring but when I have two keywords it chooses the wrong one. Like in this example for "access failure" it gave me failure instead of access issues. How can I fix this?

 

Thanks

 

 

 

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

If 2 or more keywords are found in the Short description text, then what result are you expecting and why? 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

In this case will be the first from left to right in the short description since the second (or more) could be just to complete a phrase like in the example "access failure" access must be the main keyword instead of failure.

 

Thanks!

Hi,

Write these calculated column formulas in the Description table.  Ensure that in the keywords table, the specific words are at the top and generic ones (such as "failure") are at the bottom

keyword = FIRSTNONBLANK(FILTER(VALUES(keywords[keyword]),SEARCH(keywords[keyword],'Description'[short_description],1,0)),1)
Group = LOOKUPVALUE(keywords[Group],keywords[keyword],'Description'[keyword])

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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