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
Facil1126
9 months agoNew Member
Joining this thread . im trying to do the same but struggling . i also have a contains.
i want to check if a value is in one column and another value in a different column. the tables have a direct relationship via another column :
Column 2 = IF('PM Matrix'[Vendor Only] = "Y" ,IF(CONTAINSSTRING(RELATED('Maint Intervals & Job Plan'[Provider Path (Reference Only)]),"VENDOR"),"Y","N"))
so if the column on PM Matrix called Vendor is "Y", then, If Provider path on Maint intervals contains the word "VENDOR", then display a "Y", otherwise display a "N"
any help