Forum Discussion

Rocky_Brown's avatar
Rocky_Brown
Helper I
4 years ago
Solved

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...
  • Anonymous's avatar
    Anonymous
    3 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.