Free Trial

Alteryx Designer Desktop Discussions

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

Detect records that fall within a range of time (60 seconds buffer)

calloni
9 - Comet

Hello

 

I would like some help to attack this need of finding duplicated rows that fall in a range of time.

 

For example, the dataset attached has 7 columns and each row is a transaction. I want to consider in the analysis rows that have the same IP, product_id and a transactio_date that falls in a range of +30s or -30s from the transaction_date.

 

So in the example below:

 

transaction_dateproduct_idip
5/28/22 06:09:00EZSHARE-182252029-112190.30.98.190

 

If there is the same combination of product_id and ip and the transaction_date is > 5/28/22 06:08:30 and transaction_date < 5/28/22 06:09:30

 

Is this possible on Alteryx?
Rodrigo

2 REPLIES 2
Felipe_Ribeir0
16 - Nebula

Hi @calloni 

 

please see if the attached workflow is doing what you need to do.

 

Felipe_Ribeir0_0-1663967471433.png
1) The append tool is creating a cross join of your dataset vs your data set

Felipe_Ribeir0_0-1663967616550.png


2)The filter tool is keeping just the rows that match your requirements of combination. But with duplicates.

Felipe_Ribeir0_1-1663967661832.png


3)After that, i did some tricks to remove the duplicated combinations.

Felipe_Ribeir0_2-1663967722402.png

 

If the provided answer helped you to solve the problem/was correct, please accept it as a solution :)

 

Thanks.

 

calloni
9 - Comet

Thanks!

 

I tried to plug my full dataset of 6M rows and it is still running today :)

 

I think I found an alternative way via Tableau. But thanks a lot for help!

Rodrigo

Labels
Top Solution Authors