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

how to match city code and airport code

merypals
6 - Meteoroid

Hi all, I am working with two data sets. Is there a way to match the 3 letter airport code from File 2 to the 3 l3tter city code in File 1, having in mid airport codes differ from city codes.

 

 

File 1

MHM
BIG
ONT
IOW
IFA

 

 

File 2

airport code

 

MHM
BIG
JIO
IOW
IFA

Then I want to connect the city 3 letter code to the city name. 

3 REPLIES 3
DataNath
17 - Castor
17 - Castor

Hey @merypals, you can just use the Join tool with the 'Join by Specific Fields' option set to [city code] = [airport code].

 

You'll see those records that don't match come out of the L (Left) and R (Right) anchors respectively. Can't upload screenshots at the moment but please find the workflow attached.

Kottapally_Ramesh
7 - Meteor

Use join tool and see the J anchor for the output. 

Attached is the sample workflow.

merypals
6 - Meteoroid

Hey, I started with the Join tool and the two data sets connected. But the results are not accurate. Some airports connect to the wrong cities. 

Labels
Top Solution Authors