ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Merge 2 datasets with different structure

selsset97
7 - Meteor

Hi, I am trying to merge 2 datasets with the same categories, but different sub-categories into one with all sub-categories.

Here I attach sanitized examples of the datasets I would like to merge, and the desired output:

 

Dataset to merge 1 (2019)Dataset to merge 2 (2020)
selsset97_3-1667529175150.png

 


selsset97_4-1667529185813.png

 

 

Desired output (2019, 2020)

selsset97_5-1667529194090.png

 

 

As you can see:

  • Some lines contained in Dataset 2 do not exist in Dataset 1
    • For example: 107 Company Z
  • All categories and sub-categories are contained in the same column.

 

Thank you in advance! :)

 

4 REPLIES 4
gabrielvilella
14 - Magnetar

Hi @selsset97, here is one way of doing this.

gabrielvilella_0-1667531694339.png

 

grazitti_sapna
17 - Castor

Hi @selsset97 , another way of getting your output.

 

grazitti_sapna_0-1667537565512.png

 

Sapna Gupta
selsset97
7 - Meteor

Thank you so much! :)

selsset97
7 - Meteor

Thank you so much!

Labels
Top Solution Authors