Alteryx Designer Desktop Discussions

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

Group Users by Same Terminal, Window of Time

CMH
5 - Atom

Hi Alteryx Community, 

 

I'm trying to sort out a way to identify and group users who logged in to the same computer terminal on the same day within a given window of time. 

 

For example: Which User IDs logged in to the same terminal on the same day within one hour of each other? I've attached some sample data as a reference. Ideally I would like to be able to tweak the date/times ranges for different applications. 

 

Thanks very much!

 

 

Log_On_DateLog_On_TimeTerminalUser_ID
3/13/201711:42:431235155555554
4/17/201722:40:111236166666665
4/19/201710:13:151237177777776
4/20/20179:50:031238188888887
6/3/201715:31:021239199999998
6/4/20173:17:031240222222220
6/4/20174:00:001240233333331
6/4/20174:14:031240211111109
2/21/20189:20:279000499999995
3/22/201812:32:179001511111106
4/23/20184:48:069002522222217
5/14/20184:54:169003533333328
5/15/20189:51:059004544444439
5 REPLIES 5
ponraj
13 - Pulsar

It would be great you could share the sample result you are looking for...

CMH
5 - Atom

Hi Ponraj, 

 

Thank you for your help. In the sample data (Example A) there two users active on the same terminal within an hour on the same date (6/4/2017). As a result, I'm hoping the final output would be something like this (see Example B below). 

 

Example A: Sample Data 

 

Log_On_DateLog_On_TimeTerminalUser_ID
3/13/201711:42:431235155555554
4/17/201722:40:111236166666665
4/19/201710:13:151237177777776
4/20/20179:50:031238188888887
6/3/201715:31:021239199999998
6/4/20173:17:031240222222220
6/4/20174:00:001240233333331
6/4/20174:14:031240211111109
2/21/20189:20:279000499999995
3/22/201812:32:179001511111106
4/23/20184:48:069002522222217
5/14/20184:54:169003533333328
5/15/20189:51:059004544444439

 

Example B: Output 

Log_On_DateLog_On_TimeTerminalUser_ID
6/4/20174:00:001240233333331
6/4/20174:14:031240211111109

 

ponraj
13 - Pulsar

Here is the sample workflow for you case. Hope this is helpful. 

 

WorkflowWorkflowResultsResults

CMH
5 - Atom

Hi Ponraj, 

 

Thanks so much for your help on this. For some reason I am unable to download your workflow. I'm not having problems downloading other workflows from Alteryx community, but I keep getting a "network error" with your attached file. Would you mind re-sending? Thanks again! 

CMH
5 - Atom

Update: I switched browsers and it worked! Thanks so much for all your help on this

Labels