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.
解決済み

JOIN 2 FILES AND MARK THEIR ORIGIN IN NEW COLUMNS

dianastate
メテオロイド

Hi!

 

I am trying to join 2 excel files ( FILE 1 and FILE 2) which contain some product codes. Those product codes might repeat themselves. I want to create a new file by joining them, however, in the new file, I don't want duplicates ( each product code has to be unique) and I need 2 new columns to be created, in which it is marked with an "Yes" if that product code is coming from File 1 and/or is coming from File 2.

I have attached an example.

 

I would appreciate very much if you can help me guys! 

 

Thank you !!!

 

4件の返信4
binuacs
ポラリス

@dianastate One way of doing this

binuacs_0-1683639750049.png

 

dianastate
メテオロイド

Hi!

 

Thank you so much for the fast response!

I have tried it and it works!

 

I have 1 more question, if that's all right: in practice, the files contain other columns which are descriptions of the product codes. For example

Product CodeNameColorPrice
AAAAirTagWhite100$

 

Although I have followed the workflow that you presented, in the final output I'm not seeing those extra columns. By backtracking the workflow, I saw that it's because of the Cross Tab.

Do you have any idea how to also pull those columns in the final output?

 

Thank you so much!!

binuacs
ポラリス

@dianastate I updated the workflow let me know if you are looking for a different output

binuacs_0-1683644962666.png

 

Dev73
アステロイド

Hi @dianastate - Here is one more solution

test.png

ラベル
トップのソリューション投稿者