Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
teresadanna
Frequent Visitor

Correct my Syntax: not in ("Qualified", "Unqualified")

I'm hoping to create the following logic and I'm just not sure what the correct syntax is. Hopefully this is an easy one

 

IF(table[Stage] not in ("Qualified","Unqualified"), 1, 0)

 

IE if the stage isn't qualified or unqualified then include it in the data

1 ACCEPTED SOLUTION
Anonymous
Not applicable

IF(AND(table[Stage]<>"Qualitfied", table[Stage]<>"Unqualified"),1,0)

 

For the syntax of IN refer to the post https://www.sqlbi.com/articles/the-in-operator-in-dax/. It uses Curly brackets instead of round.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

IF(AND(table[Stage]<>"Qualitfied", table[Stage]<>"Unqualified"),1,0)

 

For the syntax of IN refer to the post https://www.sqlbi.com/articles/the-in-operator-in-dax/. It uses Curly brackets instead of round.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.