Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Extract Values After first 2 Chars for certain values

Masond3
8 - Asteroid

Hi Team, 

Hope your well. 

I need some help,

For a particular sub set of countries (United States, Australia, Canada)  i would like to produce a new column which extracts the State ISO


Country : Country ISO 
Country2 : Country Name 
State/Province : CountryISO + State ISO

 

Example Data 

 

CountryCountry2State/Province
AUAustraliaAUNSW
AUAustraliaAUVIC
AUAustraliaAUWA
CACanadaCAON
USUnited StatesUSOH
USUnited StatesUSOR

 

Expected Outcome 

 

CountryCountry2State/ProvinceState/Province ISO
AUAustraliaAUNSWNSW
AUAustraliaAUVICVIC
AUAustraliaAUWAWA
CACanadaCAONON
USUnited StatesUSOHOH
USUnited StatesUSOROR


Looking forward to your help 

Regards
Masond3


2 REPLIES 2
Ben_H
11 - Bolide

Hi @Masond3 

 

There are various ways of doing this -

 

If you are always going to have that country column you could try this - replace([State/Province],[Country],"")

 

Or if not this would work - Substring([State/Province],2,3)

 

Regards,

 

Ben

Masond3
8 - Asteroid

Hey 

Thank you so much for your input. its simple but effective 🙂 

Have a great Day 


Labels