Hi.
My task seems quite simple but logically complex, I think.
I will explain with the image below.
I want to get the time between one patient leaving the theatre room and the next one entering the theatre room. To get this information, I need the difference between Time Out of Theatre and Time Into Theatre. However, the columns are both on different rows as highlighted in red on the image above, e.g:
11:45:00 - 12:30:00 will give me the time the theatre room was free before the next patient walked in.
How do I solve this issue, please?
Note that Theatre Code stands for theatre room so the calculation would have to factor that in too.
I have attached a file
Time Event.csv (489.0 KB)
Thank you