Avatar of John-S Pretorius
John-S Pretorius
Flag for United States of America asked on

Grouping a set sequence of events

I'm monitoring traffic into a facility in real-time and events typically occur in a specific sequence [1-15-10-3] Please refer to insert below. My goal is to group (isolate the mentioned 4 events) so I can determine the total time each transaction took. i.e. referring to the first transaction from below, the vehicle was detected @ eventid1 ( (12:04:05am) and completed his transaction @ eventid3 (12:05:24) = 1min19seconds). There are instances where the sequence is only [1-10-3] and also as visible things can go wrong and you see a [1-1-15-10-3].

The challenge is that I have no field available that identifies a specific transaction and all I have is the expected sequencing of eventid's.  I need assistance grouping/isolation a set or completed transaction so I can do the math.

Typical event sequence
Crystal Reports

Avatar of undefined
Last Comment
John-S Pretorius

8/22/2022 - Mon
Ido Millet

What would you like the output to be (for the sample case provided)?
John-S Pretorius

Duration in mins and seconds (eventid 3 timestamp - evenid1 timestamp) but that is not what I'm having problems with, how do I Group/Isolate a complete transaction based on the sequence(s) mentioned ?
Ido Millet

Still not clear. Please show an example of the output for that data set.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
John-S Pretorius

Below is a similar insert  as shown in my original question, I also attached the report with some data showing (2) sequence with counterid format [1-15-10-3] and [1-10-3]

Ido Millet

I was asking for output FROM the report--not input INTO the report.
What do you want the end result to look like?
John-S Pretorius

DeviceNo, Timestart (this would be the counterid [1]), TimeEnd (this would be the counterid  [10]) Duration in (min,sec)
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Mike McCracken

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
John-S Pretorius

Thank you, this is perfect.