Forum Discussion
Anonymous
4 years agoNot applicable
IF OR DAX statement giving error
I wrote the below DAX statement but it is showing me error "
" My DAX statement is :
Column 3 = IF('Query6'[TICKET_STATE] = "NEW" || "OPEN", "COMPLETED", "REJECTED")
Can someone please help me?
Use this
= IF('Query6'[TICKET_STATE] = "NEW" || 'Query6'[TICKET_STATE] = "OPEN", "COMPLETED", "REJECTED")
5 Replies
- Vijay_A_VermaMost Valuable Professional
Use this
= IF('Query6'[TICKET_STATE] = "NEW" || 'Query6'[TICKET_STATE] = "OPEN", "COMPLETED", "REJECTED")- AnonymousNot applicable
Thank you for your help. It worked for me. 🙂
- Vijay_A_VermaMost Valuable Professional
You marked wrong post as answer. Could you please correct it?
- AnonymousNot applicable
Done. Sorry for the mistake.
- AlexisOlsonSuper User
This can also be written like this:
IF ( 'Query6'[TICKET_STATE] IN { "NEW", "OPEN" }, "COMPLETED", "REJECTED" )