Alteryx Designer Desktop Discussions

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

Combining Two Files by Specific Columns and Identifying Common Fields.

OIT
6 - Meteoroid

Hello, can someone please support me on this topic? I am trying to join two files by specific columns, namely "number" and "item". Additionally, I need another column "notes" created, which will identify common and uncommon numbers between the two files. please see below. Thank You!

 

File A

NumberItemCountrystatusDate  Qualification
100xyzBRyes10/25/20234rb
270ijkDEyes10/26/20232aa
720uvwFRno10/31/20236cb
520asdCAyes11/17/20233br

 

File B

NumberItemCountryNameMaterialQualification
100xyzBRBobzinc4rb
270ijkDEAliceiron2aa
250aaaUSJanetoil4ac
101qqqUKJohnwoodr2b
211vbmCNSmithsand7vm
520asdCAThomascopper3br

 

Output: will include additional column that checks for numbers not common in both files and other wise.

 

NumberItemCountrystatusDate  QualificationNameMaterialnew column"notes"
100xyzBRyes10/25/20234rbBobzincCommon number
270ijkDEyes10/26/20232aaAliceironCommon number
720uvwFRno10/31/20236cb--number only in file A
520asdCAyes11/17/20233brThomascopperCommon number
250aaaUS--4acJanetoilnumber only in file B
101qqqUK--r2bJohnwoodnumber only in file B
211vbmCN--7vmSmithsandnumber only in file B

 

2 REPLIES 2
kamal03
9 - Comet

Hi @OIT 

 

You can achieve this by using a simple join tool and adding a formula tool to it.

 

Please find the below workflow, please do let me know if it worked for you or not.

 

OIT.png

OIT
6 - Meteoroid

Hi @kamal03 ,

 

Thank you so much! this worked perfectly.

Labels