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

Alteryx Designer Desktop Discussions

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

How to add Columns with more data than another column - Merge Files

Richard199415
5 - Atom

Hi Everyone,

I'm trying to combine/merge two data sets from two different sources, I have two identical fields (Account Number & Invoice Number) that are shown in both files/tables but the rest of the fields are different and have different number of Rows, How can I merge this data to have all information matching the fields Account Number and Invoice Number?, below is an example of the two sources and the final output (I highlighted the data that should be added). Thank you!

 File 1 (Attached as CompanyDataExample)

Account numberInvoice NumberCompany Product NumberCompany Product NameItem Amount
123456963Code1Name110.99
[Null][Null]Code2Name250.99
[Null][Null]Code3Name360.99
[Null][Null]Code4Name40
741852852Code1Name110.99
[Null][Null]Code4Name4100.5
[Null][Null]Code6Name65.99

 

File 2 (Attached as Customer Data Example)

 

Account numberInvoice NumberCustomer Product NameItem Amount
123456963Customer ProductName115.99
[Null][Null]Customer ProductName254.99
[Null][Null]Customer ProductName362.99
[Null][Null]Customer ProductName40
[Null][Null]Customer ProductName510.99
[Null][Null]Customer ProductName6100
741852852Customer ProductName115.99
[Null][Null]Customer ProductName254.99
[Null][Null]Customer ProductName362.99
[Null][Null]Customer ProductName40

 

Desired Output:

Richard199415_0-1671046614492.png

 

 

1 REPLY 1
ArtApa
Alteryx
Alteryx

Hi @Richard199415 - Here is a possible solution:

ArtApa_0-1671054035375.png

 

Labels