Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Replace words in specific column to summarize

johnnyycchan
7 - Meteor

Hi all,

 

There are some data in the column to replace some words based on criteria in priority (from left to right) as follow : 

BP --> Recall --> OS --> GOV --> Commercial --> FC --> Other Service

 

Source

CustomerType
DavidBP
TomCommercial
DavidGOV
Mary Recall
SusanOS
JimFC
SusanOther Service

 

Output : 

CustomerType
DavidBP
TomCommercial
Mary Recall
SusanOS
JimFC

 

Best Regards,

Johnny

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @johnnyycchan ,

 

With a formula tool, I have created a new column with the Priority ID. Then I sorted for each customer, so the smallest ID comes first and with a summarize tool I just kept the first value.

 

AngelosPachis_0-1616481877337.png

 

Hope that helps, let me know if that worked for you.

 

Cheers,

 

Angelos

johnnyycchan
7 - Meteor

Hi Angelos,

 

It works. Thanks a lot. 

 

Best Regards,

Johnny

Labels
Top Solution Authors