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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
sudanaditya
Regular Visitor

Formula to validate two date ranges

Hello All - I have a requirement where we need to write a validation either in DAX or in Power Query for the below scenario.

Clone start date  9/1/2019

Clone End date  9/5/2019

CRP start date - 9/5/2019

CRP End date -10/1/2019

 

The scenario   is that the conditional colum should populate"Risk" else "no Risk"  if any one of the dates in the  CRP start date and CRP end Date ( Range) fall in betweeen Clone Start - Clone end date ( Range) .

Thanks in advance .

Sudan

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

Putting the folling in a calculated column should give you want you want. This logic should cover both full and partial overlaps.

 

= IF (  [CRP start date] <= [Clone end date] 
  && [CRP end date] >= [Clone start date], "Risk", "No Risk")

View solution in original post

1 REPLY 1
d_gosbell
Super User
Super User

Putting the folling in a calculated column should give you want you want. This logic should cover both full and partial overlaps.

 

= IF (  [CRP start date] <= [Clone end date] 
  && [CRP end date] >= [Clone start date], "Risk", "No Risk")

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.