Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ykankam
Helper I
Helper I

Multi Condition column

I am writing a DAX formula, where given the DATEDIFF in days between 

Master_Data'[Dispo.ActualDispoDate] and  'Master_Data'[QC_Release_Date_BDS.QC_DATE] is less than or equal to 50 days, the formula returns "on time" or "Late" respectively.
However, there is one unique product that if the 

DATEDIFF in days between  Master_Data'[Dispo.ActualDispoDate] and  'Master_Data'[QC_Release_Date_BDS.QC_DATE] is less than or equal to 60 days, the formula should return the same output i.e. either "on time" or "Late" respectivel.

 

How do I capture this in one single DAX formula? See DAX formula below

 

Ykankam_0-1692282000174.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ykankam , the comma before  'Master_data[Product]' ="Pembrolizuab" should be and or or

means && and || 

 

In case it is and(&&) , but or condition in brackets ()

 

View solution in original post

2 REPLIES 2
Ykankam
Helper I
Helper I

thank you, @amitchandak . It worked

amitchandak
Super User
Super User

@Ykankam , the comma before  'Master_data[Product]' ="Pembrolizuab" should be and or or

means && and || 

 

In case it is and(&&) , but or condition in brackets ()

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.