Alteryx Designer Desktop Discussions

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

Help with formula

sbb
7 - Meteor

I need help with the creation of two formulas:

  1. I need to convert a string value that says "Mid-Atlantic" to "MA"
  2. I need to remove the dashes from a SSN (e.g., xxx-xx-xxxx converted to xxxxxxxxx)

 

Thank you.

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus
2. Replace([string],"-",'')

1. Regex_replace([string],"[^A-Z]",'')

Texting you these answers.
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
JordanB
Alteryx
Alteryx

Hi sbb,

 

I have attached a workflow which shows the function I used. 

 

I used the Replace and RegEx replace functions. 

 

Best,

 

Jordan Barker

Client Service Support Engineer

sbb
7 - Meteor

Thank you Jordan for the assistance.

Labels