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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.