Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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 Alumni (Retired)

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
Top Solution Authors