Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to filter for documents with the same ID created within 3 seconds of each other

ArmyGrooSMH
5 - Atom

I have unique files getting revisions.  Each file can have many revisions and I only care about the first two.

I have filtered the data so "docrevnum" is 0 or 1 .

 

What I would like to do from here is count the number of times those pairs have "docrevdate" within 3 seconds of each other.

 

Thank you,

 

ArmyGroo

2 REPLIES 2
binuacs
21 - Polaris

@ArmyGrooSMH What are the expected output results?

 

ArmyGrooSMH
5 - Atom

The ideal output to the above is a count of the number of times "itemnum" shows a "docrevdate" within 3 seconds of each other.  The example data should show 6. 

 

There is one trick in the sample data. 

88343237

Shows up 3 times.  Twice with a docrevnum of 0.  This has been fixed on my side by adding a unique on docrevnum+itemnum+docrevdate.

I have 100million records and ideally want to know the number of times an item revision comes in within 3 seconds of the original.
I will be adding a groupby to the filetypenum after getting a count.

Labels
Top Solution Authors