In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

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
Top Solution Authors