Forum Discussion

Manoa's avatar
Manoa
New Member
2 years ago

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