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

Replace score with highest score for the same "Name"

asarma
5 - Atom

Hi,

 

I need some help for the below scenario. Any guidance help is greatly appreciated.

 

Replace score with highest score for the same "Name". For the same person all score should become equal to the highest score. So number of rows will be same as before, the name field will remain the same, only the score will be replaced with highest score for all rows.

 

Thanks.

 

NameScoring
John T4
Adam S1
John T0
Adam S2
Terry0
Scott5
John T4
Scott1
John T2
Adam S3
Bill2
Bill1
Terry6
John T7
2 REPLIES 2
Lwt08
6 - Meteoroid

Hi @asarma,

 

I would recommend for using a sort tool on both the columns ensuring Scoring is descending. Then use a unique on the Name to get each name mapped to their highest score. Then simply join that list to your original list (can be before or immediately after sort) ensuring the original list is on the L tag and joining on name only. Then the J output tag should have what you want.

asarma
5 - Atom

Hi @Lwt08,

 

Thanks for sharing the solution and thanks for your help.

 

Regards,

 

asarma

Labels