Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Replacing Abbreviation with a full name

kushalb
7 - Meteor

Hi All,

 

Thank you for your immense support & help.

 

I am stuck at this issue where I have a dataset with first 2 columns like mentioned below & need Compiled_Jurisdictions column with the help of mapping data given below:

 

ATR_UIDJurisdiction_AbbreviationsCompiled_Jurisdictions
1002314__HPCBQCQuebec
1004728__HBUVBCBritish Columbia
1005152__HBKQONOntario
1005190__HPOCBQCQuebec
1008249__HBCAQBCBritish Columbia
1013668__HBCZACA,ON,BCCanada, Ontario, British Columbia
1070291_4200037_HBEZCA,ABCanada, Alberta

 

I have a Jurisdiction mapping file as well which is:

 

Value in Now

Expected values

ONOntario
QCQuebec
CACanada
BCBritish Columbia
ABAlberta
NSNova Scotia
MBManitoba
SKSaskatchewan
PEPrince Edward Island
NLNewfoundland and Labrador
NBNew Brunswick
NTNorthwest Territories
YTYukon
NUNunavut

 

so, how to solve this problem as i tried Find & replace tool but it's not compiling various jurisdiction in a single row.

Thank you in advance

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@kushalb 
We should use the option "Replace Multiple Found Items" and replicate a new column for output.

1019-kushalb.PNG

bkurt
8 - Asteroid

First do a text to columns and separate with delimiter commas into three columns. Then do three joins with the mapping file into the three columns.

binuacs
21 - Polaris

@kushalb One way of doing this

 

binuacs_0-1666165338451.png

 

Emmanuel_G
13 - Pulsar

@kushalb 

 

When you want to replace a value in many rows based on some mapping, the Find and Replace tool is the most suitable tool ( Instead of do if with many subconditions ).

 

Find in attachement the way to do that with this tool and let us know if it worlks as you want.

 

Emmanuel_G_0-1666258390721.png

 

Labels
Top Solution Authors