Forum Discussion
Anonymous
4 years agoNot applicable
Finding substring with multiple values
Similar problems have been answered before but the solutions are not quite working in my case. I'm relatively new to DAX, so not sure if this is easily solvable. My main data source is quite larg...
- Anonymous4 years ago
Hi Anonymous ,
Please use the following DAX formula to create a calculated column:
Column =IF( SUMX(MatchList, FIND( UPPER(MatchList[Keyword]), UPPER(Companies[Company]) ,,0 ) ) > 0, “YES!”, “Probably Not” )Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
KNP
Super User
4 years agoDo you have the complete list of words somewhere?
I'd be referencing that and using a PowerQuery formula to flag the rows.
That way you have a dynamic solution simple by adding new values to the list.
- itsme4 years ago
Resolver I
Yes! This would be the way to go for long term solution, especially if that list changes. All you'd need to do is update that list somewhere (e.g. Excel in SharePoint...), bring that list into PQ, and reference it in a PQ formula similar to the IN operator in DAX.