Free Trial

Alteryx Designer Desktop Discussions

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

Data Cleansing Hyphen

mustufa2019
8 - Asteroid

I am trying to perform data cleansing and remove hyphen between names and remove the spaces. See below example:

 

Input:

 

First NameLast Name
JackSmith-Owen
DavidFlintoff
AndrewLehman-Smith
AhmedAbdul-Karim

 

Output:

First NameLast Name
JackSmithOwen
DavidFlintoff
AndrewLehmanSmith
AhmedAbdulKarim
8 REPLIES 8
BrandonB
Alteryx
Alteryx

You can do this using a formula tool. Set the field to Last Name

 

Replace([Last Name], "-", "")

MattR79
8 - Asteroid

I have tried to do this but I am getting a "The field "" is not contained in the record" error as seen in the attached comment.  Is there something that I am missing?

atcodedog05
22 - Nova
22 - Nova

Hi @MattR79 

 

Can you provide snapshot of the error.

MattR79
8 - Asteroid

Forgot to attach the screenshot it is attached here.

MattR79
8 - Asteroid

Just attached it.

atcodedog05
22 - Nova
22 - Nova

Hi @MattR79 

 

You need to select the output column. If you are trying to replace in same column give same column name as output column(in your scenario [Source Ref Bo (Out)])

atcodedog05_0-1627062736537.png

 

Hope this helps : )

MattR79
8 - Asteroid

Yep, that worked.  I knew I was missing something simple.  Thanks a lot.

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @MattR79 

Labels
Top Solution Authors