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

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

Ted's Dev Camp - October 6, 2022

Watch the playback of Session 26 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.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors
Top Kudoed Authors