Alteryx Designer Desktop Discussions

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

Want to get rid of only two special characters

theamandagail
6 - Meteoroid

Hello,

 

I only want to get rid of two special characters in every field of my output:

 

--

"

 

I currently have it set up where I have one formula for each field name. However, I want a formula for the whole output.

 

Can someone assist? It's cumbersome to do the same formula for each field name.

 

Replace([FEDERAL_TAX_ID],'--',' ')

Replace([ACRONYM],'--',' ')

 

etc.

 

 

5 REPLIES 5
ChrisTX
15 - Aurora

Use the Multi-field Formula tool

ArtApa
Alteryx
Alteryx

I attached a workflow for your convenience.

 

ArtApa_0-1594078897259.png

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

Sorry @ArtApa , but that answer will create problems for 3 or more -'s

 

Regex_Replace[_CurrentField_],"(.*?)--(.*)",'$1$2')

 

 cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
theamandagail
6 - Meteoroid

Thank you!

 

Does this formula go in the "Multi Row Formula" tool?

theamandagail
6 - Meteoroid

That worked! Thank you for all your help!

Labels