Forum Discussion

mdex's avatar
mdex
Resolver I
4 years ago

Comparing User/Date/Time over 2 tables

We have an effort tracking system for Overtime and Standby. What I would like to be able to do is highlight a users overtime claims that were made when they were on standby, either the Start or End time of OT claims that are during a Standby claim.

 

All booking are in one table but can easily split them between an OT and Standby table.

 

UserTeamTime TypeDateStart TimeEnd Time
A1Standby01/01/202208:0016:00
B2Overtime01/02/202207:3009:30
A1Overtime01/01/202206:00

09:00

A1Overtime01/01/202215:00

16:00

 

3rd and 4th line in this table are examples of what I want to know about. 

 

I started by splitting the OT and Standby into separate tables and joining using a combination of User/Team/Date but cannot think how to use this in combination with some filtering to hightlight the entries.

 

Any help appreciated.

2 Replies

  • mdex's avatar
    mdex
    Resolver I

    I've decided to simplify this a little to allow me to find my own solution.

     

    I have nested ifs to check is User booked OT and standby on same day, then to see if start time was before 8am or after 6pm.

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Community Support

    Hi mdex ,

     

    It seems less clear how to get three or four rows of data records based on overtime requests made during on-call, can you give an example and provide a screenshot of the expected results?

    Looking forward to your reply.


    Best Regards,
    Henry