Forum Discussion
Anonymous
6 years agoNot applicable
Correct syntax for IN
CAn somebody help me with the correct syntax for:
NonCompliance Day = IF('QGenda Compliance'[ClockOutCategory] IN ("Excessive duration/fixed clock in", "Missing clock out"), 1, 0)
Anonymous - Try:
NonCompliance Day = IF('QGenda Compliance'[ClockOutCategory] IN {"Excessive duration/fixed clock in", "Missing clock out"}, 1, 0)Hi Anonymous ,
Replace round brackets by Curly brackets for IN operator.
Syntax: IN {"Value1", "Value2",..,"Value N"}
Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!
3 Replies
- AnonymousNot applicable
Thank you!! Didn't realize it was something so simple.
- Greg_DecklerCommunity Champion
Anonymous - Try:
NonCompliance Day = IF('QGenda Compliance'[ClockOutCategory] IN {"Excessive duration/fixed clock in", "Missing clock out"}, 1, 0) - Anand24Super User
Hi Anonymous ,
Replace round brackets by Curly brackets for IN operator.
Syntax: IN {"Value1", "Value2",..,"Value N"}
Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!