Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Flagging only one of the duplicate rows which are belong each user

acaryasin01
8 - Asteroid

Hi guys,

 

I have a table that is filtered duplicated users like below. 

 

I want to create a new column that is flagged as "Revoke" based on each duplicated User according to its "Last Login" column which is oldest one.

That means flag the each duplicated user's row which is older "Last Login" date than the other in the same user as "Revoke" who has more than one "Last Login" entry.

 

Any ideas !

 

My Dataset

 

UserVersionDevice IDLast Login
A2020.434525-6-2020 13:10
A2019.334611-11-2020 07:55
B2019.324424-9-2020 13:14
B2020.224323-12-2020 07:45
C2019.345627-11-2019 12:14
C2020.34574-12-2020 15:08
D2019.35679-10-2020 09:28
D2020.256930-12-2020 08:09

 

Desired Dataset

 

UserVersionDevice IDLast LoginRevoke
A2020.434525-6-2020 13:10 
A2019.334611-11-2020 07:55Revoke
B2019.324424-9-2020 13:14Revoke
B2020.224323-12-2020 07:45 
C2019.345627-11-2019 12:14Revoke
C2020.34574-12-2020 15:08 
D2019.35679-10-2020 09:28Revoke
D2020.256930-12-2020 08:09 
3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @acaryasin01 

 

Here is how you can do it.

 

Workflow:

atcodedog05_0-1626256837000.png

1. Sort by user and sort descending on last login.

2. Using mult-row formula tool to flag revoke. If the row is not first row for user flag revoke. This is doesn't flag the latest last login row for user.

 

Hope this helps : )

 

acaryasin01
8 - Asteroid

Perfect It works, Thank you so much 😊 @atcodedog05  

Also Thanks for fast reaction 👍

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @acaryasin01 

Labels