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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Manoa
New Member

Finding datetime overlaps bases on dimension attribute

Hi, 
After struggling a day with several DAX solutions I'm left rather puzzled how to solve this.

The question is rather simple. Create a report for a planner, who has to make appointments with multiple professions/employees per appointment.

 

Design:

For all selected professions (via slicer) show available times with overlap with another availability (with a selected profession). ONLY show data when ALL selected professions have overlap.

 

Tables (simpified):

FactAvailability

Columns: EmployeeId, Start, End

 

DimEmployee

Columns: EmployeeId, Profession

 

Any help is much appreciated.

 

1 REPLY 1
lbendlin
Super User
Super User

overlaps by what - days, hours, minutes?  

 

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors