Forum Discussion

AdamWhittaker's avatar
3 years ago
Solved

IN Operator where the string is a Field

Hello,   I am trying to find an application version based on a string of comma delimetered values. If i add the values manually in the DAX Calculated column then it works fine but if i use a field ...
  • AlexisOlson's avatar
    AlexisOlson
    3 years ago

    The expanded version is likely to work better.

     

    The IN operator only works on a list, not a string. It's possible to convert a string into a list (with a mix of SUBSTITUTE, GENERATESERIES, and PATHITEM), but that's almost certainly less efficient than CONTAINSSTRING.

     

    Depending on what you're ultimately trying to do, it's not clear if you even need the 'Device Type to Applications' table. If it's just a helper table, then you can almost certainly do better without it.