Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks Greg,

 

I've managed to find a solution.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks Greg,

 

I've managed to find a solution.

Greg_Deckler
Super User
Super User

See my article on Mean Time Before Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi,

 

thanks for your help, however I'm not sure how this gets me what I'm after. I've tried to keep up with your article but I am struggling to apply it to my scenario.

 

Ideally I would like a new table which shows the earliest timestamp of a call ID in 1 column and the latest timestamp of it in another column.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.