We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Names Repeat Fix

amit94
5 - Atom

Hi Guys,

I've come across an issue where I need to automate a report but problem is that Customer Names( first, middle and last) are being repeated, Below is a sample table, I've tried a few regexes but couldn't get anything. 

 

First NameMiddle NameLast NameName I GetName  I Want
RamKumar  Ram Kumar  Ram Kumar
Ram Kumar  Ram Kumar  Ram Kumar
Ram KumarRam Kumar Ram Kumar Ram Kumar Ram Kumar
Ram KumarRam KumarRam KumarRam Kumar Ram Kumar Ram KumarRam Kumar
RamKumar KumarRam Kumar  KumarRam Kumar
RamRamKumarRam Ram KumarRam Kumar
SSubramaniyam S Subramaniyam S Subramaniyam 
S SubramaniyamS SubramaniyamS SubramaniyamS Subramaniyam S Subramaniyam S SubramaniyamS Subramaniyam 
4 REPLIES 4
DataNath
17 - Castor
17 - Castor

How does this look @amit94? Perhaps not the most succinct but tried to approach this without RegEx. The workflow basically combines the names as they are before then splitting them into rows and eliminating duplicates for that record, therefore ignoring instances where the full name or parts of it have been repeated in multiple fields, before then combining back to the main data set. Let me know if you run into any issues when applying this to a larger set of records.

 

DataNath_0-1660730419591.png

 

Edit: Added a Multi-Row to assign IDs to the words to get the right sort in the end.

 

DataNath_0-1660730945879.png

Christina_H
14 - Magnetar

I took a very similar approach, transposing the name columns and removing duplicates.

Christina_H_0-1660730701152.png

 

binuacs
21 - Polaris

@amit94 One way of doing this

 

binuacs_0-1660731510650.png

 

amit94
5 - Atom

Thanks a Lot, Guys!! It worked for me.👍

Labels
Top Solution Authors