Forum Discussion
Antonio195754
6 years agoHelper IV
Trying to write an IF statement using OR
Greetings, I'm trying to write a statement for a column that shows 3 types of values: Complete, Not Complete, Not Assigned. I need both "Complete" OR "Not Assigned" to return a "0", else "1"....
- 6 years ago
Hi,
Try this calculated column formula
=if(OR('Database'[Column]="Complete",'Database'[Column]="Not Assigned"),0,1)
Hope this helps.
Greg_Deckler
6 years agoCommunity Champion
Column = if('Database'[Column]="Complete" || 'Database'[Column]="Not Assigned","0","1"))Antonio195754
6 years agoHelper IV
Greg_Deckler This method also worked for me. all my visuals that hinged to that missing link then worked. thanks so much
- Greg_Deckler6 years agoCommunity ChampionYeah, they are equivalent. I just find the || and && easier because as I am thinking through the logic, that's how I think, if this or that... not "if well let's see it will be this or that so I need to start with OR".
Rubbish!! 🙂