Alteryx Designer Desktop Discussions

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

Group by similar characters

sergiospolo
Alteryx
Alteryx

I have the following file structure and I want to replace the approver's name that have similar characters with just one of my choosing. You can see in my sample data that I have many similar approver's name for one single person.

 

For instance, all the approver's names that are similar in structure like "C Arnold" or "C.Arnold" or "C ARNOLD" OR "c arnold" or "c..Arnold" or "C/ Arnold" need to be replaced with just one of those names of my choosing and so on for the rest of the names.

 

Here is a sample of the data.

 

Return NotesApproverOrder IDProduct IDReturn Reason
not all rings lockedC  ArnoldCA-2015-148950OFF-BI-10001249Defective
Replacement machine sentC ArnoldCA-2017-134803TEC-MA-10001972Defective
Customor thought item wasn't in active order.C ARNOLDCA-2015-127012OFF-FA-10004854Incorrect Product Ordered
Customer thought phone was removed from cart.C ArnoldCA-2015-124688TEC-PH-10000455Incorrect Product Ordered
cust. thought that this was already removed from cart.C ArnoldCA-2015-151162TEC-PH-10001809Incorrect Product Ordered
customer didn't know item was in cartC ArnoldUS-2015-164763OFF-PA-10003063Incorrect Product Ordered
customer didn't know item was in cartC ArnoldCA-2015-156349FUR-BO-10000362Incorrect Product Ordered
The item DID NOT satisfy customer requirements.c arnoldCA-2015-166744FUR-FU-10004952Incorrect Product Ordered
customer meant to order different color.C ArnoldCA-2016-142601OFF-ST-10002756Incorrect Product Ordered
Customer wanted power strip with surge protectorC ArnoldCA-2018-162016OFF-AP-10003040Incorrect Product Ordered
customer received cardstock paper, instead of the printer paperC ArnoldCA-2015-164861OFF-PA-10001972Incorrect Product Shipped
This item was never shipped. Did not arrive with orderC ArnoldCA-2017-145583OFF-BI-10004781Incorrect Product Shipped
Black chair was shippedC ArnoldCA-2017-162159FUR-CH-10001146Incorrect Product Shipped
Customer found cheaper item elsewhereC ArnoldCA-2018-137428FUR-CH-10002774No Longer Needed
customer ordered too manyc. arnoldCA-2016-164882OFF-SU-10004231Incorrect Product Ordered
One ring was misalignedC.. ArnoldUS-2017-157490OFF-BI-10002571Defective
screen wouldn’t adhere correctlyC/ ArnoldCA-2017-145982TEC-PH-10000011Defective
One ring won't closeE   WilliamsUS-2015-164406OFF-BI-10002309Defective
Appeared to be corruptE   WilliamsCA-2016-143238TEC-AC-10003499Defective

 

Complete file containing all the data attached.

 

5 REPLIES 5
fmvizcaino
17 - Castor
17 - Castor

Hi @sergiospolo,

 

To solve this issue, you can use fuzzy match to find all possible combinations also when having mistyping problems in your approver's column.

fmvizcaino_0-1592276998291.png

 

Best,

Fernando Vizcaino

 

sergiospolo
Alteryx
Alteryx

Thanks Fernando. Very close to what I need. Is there a way to select which name to change all the similar records to instead of using the one specific option? I see that the final name came out to be one that was cleaned with no punctuation.

 

Thanks for your advice. 

 

Sergio

fmvizcaino
17 - Castor
17 - Castor

Hi @sergiospolo ,

 

A bit more complex than the last one but it does the job. The idea is for you to have a list of selected names you want to use, other than that, there is no way of telling the fuzzy match which name you want to choose without doing it manually.

 

Best,

Fernando Vizcaino

sergiospolo
Alteryx
Alteryx

@fmvizcaino 

 

Thanks Fernando. This does the work although a bit complicated for just that one task.

 

I will close this discussion as solved after perhaps some other community members figuring out different ways to tackle this problem but your solution works just fine.

 

Thanks for the time you put into providing a solution.

 

Sergio

fmvizcaino
17 - Castor
17 - Castor

Hi @sergiospolo ,

 

3rd try here! haha

If you have a standardized name with a letter + a surname, this could work.

fmvizcaino_0-1592281472240.png

 

 

Best,

Fernando Vizcaino

Labels