Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

New column with IF THEN ELSE with OR & AND

Hi all - trying to fill with a new column using the following formula - shows no initial syntax errors but errors at run time:


if [Status] = "A" or "INTL" or "F"

  and [Status Date] < 04/01/2021

  then "Yes"


 if [Status]  = "T" and

  [Status Date] >= 03/01/2021

then "Yes"


else "No"


Any help would be greatly appreciated...


Super User
Super User

With challenges like this, reduce the query to something simple that works, e.g. if [Status] = "INTL" then "y" else "n"

- then add something in which gets a bit closer to the final version.  If it breaks, investigate that.

Frequent Visitor

power query i believe

Super User
Super User

power query or dax?

Helpful resources

Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors