Forum Discussion
Anonymous
5 years agoNot applicable
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
- 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 regardsDenisBlog: WhatTheFact.bi
Anonymous
4 years agoNot applicable
Can you make this with multiple items for example by adding in || althouhg I get and error saying cannot convert value of type text to type true and false
Status = IF( CONTAINSSTRING( myTable[Markets], "40"||"50" ), "H", "W" )