Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors