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.
Hi,
I have a table with a list of keywords.
What I would like to do is look at a string (description) in another table (table1) and return the Output from Keywords on the first matching Tag.
String "Fault with Outlook due to VPN" would return the Output "MS Outlook"
A simple lookup value will only match the whole string, FIND/SEARCH don't allow lookup of table values.
Any help is appreciated.
Solved! Go to Solution.
Thanks both.
I ended up doing this in Power Query.
1. Separated all words in the in the description into a list.
2. Found first word in that list that matches a tag
I'll checkout the answer from @Ashish_Mathur too.
Thanks
Thanks both.
I ended up doing this in Power Query.
1. Separated all words in the in the description into a list.
2. Found first word in that list that matches a tag
I'll checkout the answer from @Ashish_Mathur too.
Thanks
Hi,
Try these calculated formulas
All matches = CONCATENATEX(FILTER(VALUES(tags),CONTAINSSTRING(Data[Remarks],Tags[Tag])),Tags[Output],", ")
First match = lookupvalue(Tags[Output],Tags[Tag],FIRSTNONBLANK(FILTER(values(Tags[tag]),SEARCH(Tags[Tag],Data[Remarks],1,0)),1))
Hope this helps.
Do you need this in DAX or in Power Query?
Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
79 | |
73 | |
56 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |