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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

how to check overlapping records based on multiple columns

Hi, 

 

I have a sick leave table like below. I want to check if an employee has submitted any sick leave request that overlap with another request. E.g.,, in the table below, employee id 25, submitted one sick leave request starting from 2018-01-15 to 2018-02-15, then another request starting from 2018-02-11 to 2018-07-24. clearly the 2nd request partially overlaps witht the first request. How to create a DAX column to check these overlapping cases?

 

I have tried if() + earlier() function, it looks earlier() only works with filter functions.  

 

sick leave records.PNG

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , In the past I Solved overlapping problem. See if this file can help 

https://www.dropbox.com/s/1mlq21o1xjuw8il/overlappingdates.pbix?dl=0

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , In the past I Solved overlapping problem. See if this file can help 

https://www.dropbox.com/s/1mlq21o1xjuw8il/overlappingdates.pbix?dl=0

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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