Forum Discussion
atavo
Helper I
7 years agoSEARCH TEXT STRING BASED ON LIST OF VALUES - EXACT MATCH
Hi There have been solutions offered regarding searching string text using a list of values, eg: 1. https://community.powerbi.com/t5/Desktop/Power-query-Add-column-with-list-of-keywords-found...
- 7 years agoThanks
Was able to solve the problem by wrapping the string text in single spaces (b4 and after). Did the same with the list of lookup values. Thereafter, comparison worked like a gem.
Alfred
Stachu
Community Champion
7 years agoyou convert the text to list and then use list comparators, e.g. List.Contains
https://docs.microsoft.com/en-us/powerquery-m/list-contains