Connecting time booking inbetween specific attendance date

Raymie

New Member
Joined
Jan 29, 2018
Messages
7
Hi

Am looking for help. I have two tables in power pivot. The first one show employee attendance (see example below). The second shows employee daily booking (see example below). What am looking to do is show all employee bookings within the employees attendance. I can do this for the employees that work day shift & back shift because all there booking are on the same day as there attendance. The problem I have is with night shift because the attendance and bookings are over two days. Is there anyway I can create a relationship or formula within power pivot that links the bookings between the employees attendance time.

Table 1
Operator IDStart Date/TimeFinish Date/Time
101/03/2018 06:0001/03/2018 14:00
201/03/2018 06:0001/03/2018 14:00
301/03/2018 14:0001/03/2018 22:00
401/03/2018 14:0001/03/2018 22:00
501/03/2018 22:0002/03/2018 06:00
601/03/2018 22:0002/03/2018 06:00

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Table 2
Operator IDBooking Start Date/TimeBooking Finish Date/Time
101/03/2018 06:0001/03/2018 08:24
101/03/2018 08:2401/03/2018 10:48
101/03/2018 10:4801/03/2018 13:12
201/03/2018 14:0001/03/2018 16:24
201/03/2018 16:2401/03/2018 18:48
201/03/2018 18:4801/03/2018 21:12
301/03/2018 22:0002/03/2018 00:24
302/03/2018 00:2402/03/2018 02:48
302/03/2018 02:4802/03/2018 05:12
402/03/2018 06:0002/03/2018 08:24
402/03/2018 08:2402/03/2018 10:48
402/03/2018 10:4802/03/2018 13:12
502/03/2018 14:0002/03/2018 16:24
502/03/2018 16:2402/03/2018 18:48
502/03/2018 18:4802/03/2018 21:12
602/03/2018 22:0003/03/2018 00:24
603/03/2018 00:2403/03/2018 02:48
603/03/2018 02:4803/03/2018 05:12

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
What you are looking to accomplish is not clear. Can you provide a sample of desired output?
 
Upvote 0
Am looking to calculate daily employee utilization (number of hours booked/number of hours attended). I can do this for employees on day shift and back shift okay because all there bookings and attendance is on the one day. The problem I get is night shift where there bookings can be spread over two days. I would like to relate all the booking from night shift to there attendance start date.
 
Upvote 0

Forum statistics

Threads
1,213,557
Messages
6,114,293
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top