Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Omitting overlapping connection times?

jwlam
8 - Asteroid

Hi everyone,

 

I'm struggling to get this formula to work. I need to calculate the total duration people attended a meeting. However, the report shows overlapping times and includes the duration of those. Is there a way to omit rows with overlapping connection times so I can get a column with Actual Duration? Maybe with a macro?

 

End goal is to only have non-overlapping times to be counted so for John Smith that last row shouldn't be 8 since the times overlap with his first row.


Thanks!!

3 REPLIES 3
Yoshiro_Fujimori
15 - Aurora

Hi @jwlam ,

 

My solution below may be somewhat brute force, but it works if the duration is not too long.

I hope it works.

 

Workflow

The idea is to generate one row by each second between Start Time and End Time, and count distinct the rows by each ID.

Community_1195247.png

Qiu
21 - Polaris
21 - Polaris

@jwlam 
I am not able to fully understand your intention here.

So take instance of John Smith, we will remove #11-#14 since their time is having overlapping with row#10, given that we sort the data of Start Time in an accedening order?

2023-10-07 095230.png

jwlam
8 - Asteroid

@Yoshiro_Fujimori brute force works for me. Thanks!!

Labels