In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Replace multiple characters in multiple fields

BautistaC888
8 - Asteroid

Hello,

 

I want to replace multiple characters in multiples fields.

I used a multi-field formula with the following expression:

 

Replace([_CurrentField_], "Ð", "Ñ") and Replace([_CurrentField_], "¬", "°") and Replace([_CurrentField_], "Ô", "á") and Replace([_CurrentField_], "¢", " ") and Replace([_CurrentField_], "Ë", "Ó") and Replace([_CurrentField_], "À", "") and Replace([_CurrentField_], "³", "ü") and Replace([_CurrentField_], "¨", "ú") and Replace([_CurrentField_], ";", "") and Replace([_CurrentField_], "Ê", "E") and Replace([_CurrentField_], "Þ", "é") and Replace([_CurrentField_], "÷", "ö") and Replace([_CurrentField_], "´", "í") and Replace([_CurrentField_], "½", "1/2") and Replace([_CurrentField_], "î", "í") and Replace([_CurrentField_], "'", "") and Replace([_CurrentField_], "î", "í") and Replace([_CurrentField_], "#", "N.") and Replace([_CurrentField_], "°", "") and Replace([_CurrentField_], "´", "")

 

But the formula replaced all the data with "0":

 

BautistaC888_0-1629809206756.png

 

I want to know a way to replace multiple characters in multiple field is possible with multi-field formula or a Regex.

 

Thank you.

4 REPLIES 4
MatthewBr
Alteryx Alumni (Retired)

Have you considered the find and replace tool? 

MatthewBr
Alteryx Alumni (Retired)
KarolinaRoza
11 - Bolide

hi @BautistaC888 

 

Your formula is not working correctly, as you can not include several 'and' in the formula. It will work if you rewrite it to:

 

Replace(Replace([_CurrentField_],"¬","°"), "Ð", "Ñ") 

 

but as long as you have a lot of values to replace it is not efficient.

 

I also reccomed you to use Find/Replace tool.

 

See workflow attached.

 

KarolinaRoza_1-1629811381275.png

 

 

Let me know in case you need more help.

Karolina

 

binay2448
11 - Bolide

Hi @BautistaC888 ,

 

You can use find and replace tool, find attached workflow for help

Labels
Top Solution Authors