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

Lookup for multiple columns against a single list of values

LJDL
6 - Meteoroid

I have a dataset similar to the sample below;

 

Data:

PersonGENDERNATIONAGEETHNICITY
10158
23138
30057
42014
53057
62118
71049
80158
93153
102029

 

I then have a separate, single lookup file setup like this;

 

Lookup:

FieldLabelDescription
GENDER0Female
GENDER1Male
GENDER3Other
NATION0UK
NATION1Other (including unknown)
AGE120 and under
AGE221 to 24
AGE325 to 29
AGE430 and over
AGE5Unknown
ETHNICITY1White
ETHNICITY2Black Caribbean
ETHNICITY3Black African
ETHNICITY4Indian
ETHNICITY5Pakinstani
ETHNICITY6Bangladeshi
ETHNICITY7Chinese
ETHNICITY8Mixed
ETHNICITY9Other
ETHNICITY10Unknown

 

Which tool(s) can I use to take the appropriate Description and replace the label in the corresponding field in the dataset? The dataset has 35 columns and there are 200+ rows in the lookup table.

 

Thanks in advance

 

John

10 REPLIES 10
LJDL
6 - Meteoroid

Thanks for you help @Luke_C my lookup table is outside of my control and contains letters as well as numbers so this time I've used the transpose and cross-tab method. The dynamic replace looks very interesting though and now I've got your example I can think of other places where I can use it.

Labels
Top Solution Authors