In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Event occurrence, time threshold

sartol
7 - Meteor

Hello!

I have a list of events with time stamps.

I am trying to filter out events that don't occur within two minutes of another type of event.

Any suggestions?

 

10 REPLIES 10
DawnDuong
13 - Pulsar
13 - Pulsar

Hi @sartol 

i would be using an iterative macro to solve this. Assume you already sorted the time stamps in ascending order (oldest to newest), The schematic is:

for each loop: 

1) take the first record > take the time stamp of the first record > use datetimeadd to add 2 minto it

2) take all records whose time stamps < the upper bound in the first step

3) do a unique concatenate to find the combinations of events that occur in that 2min interval > pass that to to the non-looping macro output

4) knock the 1st record off then loop again.

End loop

after that you will have a list of the combinations of events that happen in all 2min moving window.

a simple matter to find out how many times you have a certain combi. 
dawn 

Labels
Top Solution Authors