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

September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Top Solution Authors
Top Kudoed Authors