Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Correlation between same column, different items for time periods

Hi All,

 

I have a data table consisting of call data. Each different call shares a reference "Session ID" and each time something happens within the call this is logged with a time stamp. I am wanting to be able to get the length of each call based on this info. I can then use this for the average time taken to complete actions etc.

 

Here is part of my data table.

 

LogtimestampSession ID
14/12/2018 11:53:19ABC-001
14/12/2018 11:53:25ABC-001
14/12/2018 11:53:40ABC-001
14/12/2018 11:54:10ABC-001
14/12/2018 11:54:25ABC-001
14/12/2018 11:54:37ABC-001
14/12/2018 11:54:50ABC-001
14/12/2018 11:54:55ABC-001
14/12/2018 11:55:15ABC-001
14/12/2018 11:53:50ABC-002
14/12/2018 11:54:10ABC-002
14/12/2018 11:56:05ABC-002

 

and I want to end up with

 

Session IDStartEndDurration (Secs)
ABC-00114/12/2018 11:53:1914/12/2018 11:55:1556
ABC-00214/12/2018 11:53:5014/12/2018 11:56:0515

 

any idea how I do this?

 

the timestamps might not be in any particular order either.

  • Anonymous's avatar
    Anonymous
    7 years ago

    Thanks Greg,

     

    I've managed to find a solution.

3 Replies