Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

DAX IF text contains

Hi Team,   I have Markets and i need output in status column,   DAX - if markets contains 40* then H else W   Pleas    Thanks, KV's
  • selimovd's avatar
    5 years ago

    Hey Anonymous ,

     

    you should be able to solve that with a calculated column and the function CONTAINSSTRING:

    Status = IF( CONTAINSSTRING( myTable[Markets], "40" ), "H", "W" )

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
     
    Best regards
    Denis