Alteryx Designer Desktop Discussions

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

Find and Replace, Beginning of Field help

wonka1234
10 - Fireball

Hi,

 

I am unable to append records correctly with using beginning of field on my data.

 

Dataset - norman alex

Dateset 2 - norman alex (NA)

 

 

Can someone help me configure the find and replace tool to append the records correctly? 

 

SHould be like for like.

 

Also I want the workflow to be able to also account for records just like this

 

Dataset 1 - norman alex

dataset 2- norman alex.

 

See workflow attached.

11 REPLIES 11
binuacs
20 - Arcturus

@wonka1234 Updated the join key value in the first dataset with a formula tool

binuacs_0-1684159635034.png

 

wonka1234
10 - Fireball

@binuacs  thanks, do you have anything that may get rid of any bracket initials IF it exists? Ie if the persons name is Louis Stevens it may display as Louis Stevens (LS)

binuacs
20 - Arcturus

@wonka1234 I updated the formula to remove anything with () will be replaced with blank value 

binuacs_0-1684161330067.png

 

wonka1234
10 - Fireball

@binuacs  this works but if the word doesnt have brackets it makes it blank! :( 

 

ie if its just Louis Stevens, it becomes blank!

binuacs
20 - Arcturus

@wonka1234 I updated the formula to apply the regex formula only there is ( else no change

binuacs_0-1684163256395.png

 

wonka1234
10 - Fireball

@binuacs  question, what if there is two brackets in a name? 

 

ie  Louis (Lamar) Stevens (LS)  and make that into Louis Stevens... IFF the bracketed items exist?

binuacs
20 - Arcturus

@wonka1234 @How would you like to see this record in the output ? 

wonka1234
10 - Fireball

@binuacs 

 

Input  vs output

 

Louis Stevens (LS)Louis Stevens
Louis (Lamar) Stevens (LS)Louis Stevens
Louis StevensLouis Stevens
binuacs
20 - Arcturus

@wonka1234 Try the updated workflow and let me know if you see any issues

binuacs_0-1684186744720.png

 

Labels