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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Community Champion
Community Champion

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...



Follow on LinkedIn
@ 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!:
DAX For Humans

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors