Forum Discussion
Rocky_Brown
4 years agoHelper I
undefinedError whane using Search function in DAX
I am trying to search a field with multiple text scenarios but get an error. I coulduse the help to see if this can be done Search("*Text1*" || "*Text2*",'tableName[FieldName, 1, 0)= 1, "Not...
- Anonymous3 years ago
Hi Rocky_Brown ,
For your requirement, you could try Power Query approach, you can populate the search text into list and create custom function to iterator each one of them to check if within the text. Please refer to thread below:
powerbi - How to search multiple strings in a string? - Stack Overflow
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AnkitKukreja
4 years agoSuper User
Hi! Rocky_Brown
Please see if this helps. It's already answered in other posts.
https://community.powerbi.com/t5/Desktop/Search-for-multiple-text-in-one-column-with-OR/m-p/469698
https://community.powerbi.com/t5/Desktop/Search-multiple-texts-in-a-string/m-p/186105