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 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels