Forum Discussion
matts29
1 year agoFrequent Visitor
DAX help containstring
Hi, someone please help with my dax below? currently I have the below: CurrentIn= if(AND(ED_Performance[DepartureDttm]=blank(), CONTAINSSTRING(ED_Performance[CurrentLocation],"theatre")),1,0) ...
- 1 year ago
OR only get two conditions
or(con1,or(con2,con3))
- Anonymous1 year ago
Hi matts29 ,
As wdx223_Daniel mentioned, you can try the following code.CurrentIn = IF( AND( ED_Performance[DepartureDttm] = BLANK(), OR( CONTAINSSTRING(ED_Performance[CurrentLocation], "theatre"), OR( CONTAINSSTRING(ED_Performance[CurrentLocation], "hall"), CONTAINSSTRING(ED_Performance[CurrentLocation], "attic") ) ) ), 1, 0 )Best regards,
Albert HeIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Anonymous
1 year agoNot applicable
Hi matts29 ,
As wdx223_Daniel mentioned, you can try the following code.
CurrentIn =
IF(
AND(
ED_Performance[DepartureDttm] = BLANK(),
OR(
CONTAINSSTRING(ED_Performance[CurrentLocation], "theatre"),
OR(
CONTAINSSTRING(ED_Performance[CurrentLocation], "hall"),
CONTAINSSTRING(ED_Performance[CurrentLocation], "attic")
)
)
),
1,
0
)
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly