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

Merging two data sets to create new Columns

PNW12
5 - Atom

Hi Alteryx Wizards,

 

Looking for some help to combine two data sets that have some fields that don't map into one data table. I can't figure out how to populate null values for fields that don't map in the output.

 

Illustrative example tables below: Need to combine #1 and #2 to create the layout of #3.

 

Table #1

RecordCost CenterTeamActivity DescriptionOutcomeProductProduct Spend
15110 Category CreationCorporate MarketingBrand & Awareness ProgramsBrand AwarenessBuying Center - Core                                    588,000
25111 Category CreationCorporate MarketingBrand & Awareness ProgramsBrand AwarenessBuying Center - Core                                5,096,000
35112 Category CreationCorporate MarketingAssets Acquisition and CreationBrand AwarenessBuying Center - Core                                    196,000
43111 Analyst RelationsCorporate MarketingBrand & Awareness ProgramsBrand AwarenessBuying Center - Security                                    700,560
43111 Analyst RelationsCorporate MarketingBrand & Awareness ProgramsBrand AwarenessBuying Center - Ops                                    437,850

 

Table # 2

RecordCost CenterTeamActivity DescriptionOutcomeRegionRegion Spend
13110 Category CreationCorporate MarketingBrand & Awareness ProgramsBrand AwarenessTheater - AMER588000
23110 Category CreationCorporate MarketingBrand & Awareness ProgramsBrand AwarenessTheater - AMER5096000
33110 Category CreationCorporate MarketingAssets Acquisition and CreationBrand AwarenessTheater - AMER196000
43111 Analyst RelationsCorporate MarketingBrand & Awareness ProgramsBrand AwarenessTheater - EMEA437850
43111 Analyst RelationsCorporate MarketingBrand & Awareness ProgramsBrand AwarenessTheater - AMER788130

 

output: Table #3

RecordCost CenterTeamActivity DescriptionOutcomeProductRegionProduct SpendRegion Spend
15110 Category CreationCorporate MarketingBrand & Awareness ProgramsBrand AwarenessBuying Center - Core<null>                 588,0000
25111 Category CreationCorporate MarketingBrand & Awareness ProgramsBrand AwarenessBuying Center - Core<null>              5,096,0000
35112 Category CreationCorporate MarketingAssets Acquisition and CreationBrand AwarenessBuying Center - Core<null>                 196,0000
43111 Analyst RelationsCorporate MarketingBrand & Awareness ProgramsBrand AwarenessBuying Center - Security<null>                 700,5600
43111 Analyst RelationsCorporate MarketingBrand & Awareness ProgramsBrand AwarenessBuying Center - IT Ops<null>                 437,8500
13110 Category CreationCorporate MarketingBrand & Awareness ProgramsBrand Awareness<null>Theater - AMER0588000
23110 Category CreationCorporate MarketingBrand & Awareness ProgramsBrand Awareness<null>Theater - AMER05096000
33110 Category CreationCorporate MarketingAssets Acquisition and CreationBrand Awareness<null>Theater - AMER0196000
43111 Analyst RelationsCorporate MarketingBrand & Awareness ProgramsBrand Awareness<null>Theater - EMEA0437850
43111 Analyst RelationsCorporate MarketingBrand & Awareness ProgramsBrand Awareness<null>Theater - AMER0788130

 

Thanks for your help!

2 REPLIES 2
apathetichell
20 - Arcturus

I think you can do what you're looking for with a Union tool - make sure you are setting it to Auto Config by Name, Ignore when fields differ, and Output all fields..

Qiu
21 - Polaris
21 - Polaris

@PNW12 

Just further developing @apathetichell  idea.

0204-PNW12.PNG

Labels
Top Solution Authors