We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Join two datasets and retain data in both

aba
7 - Meteor

Hi Everyone,

 

I've hit a block on this and hoping for some advice on how to proceed. I've generated 2 datasets to explain what I am currently trying to achieve. I would like to join the first and second table so all product quantities are displayed in a separate column by date.

 

However, the crux of the matter is for all dates to be displayed in the "joined data" with zero values for products without quantities on a given date.

 

Appreciate your help on this.

 

DateProduct A QuantityProduct B Quantity
02 January 20232335
04 January 2023450221
05 January 2023514
06 January 20235667
07 January 20237070
08 January 20231010
10 January 2023250190
12 January 2023175124
15 January 20238696

 

DateProduct C QuantityProduct D Quantity
01 January 20234580
02 January 202315060
03 January 20231945
05 January 20233354
07 January 20235025
08 January 2023298180
15 January 20237514
3 REPLIES 3
Luke_C
17 - Castor
17 - Castor

Hi @aba 

 

How's something like this?

 

  • Join the tables on Date
  • Use a union tool to create the outer join effect you're looking for
  • Multi field formula to update null values to 0
  • Sort the data

 

Luke_C_0-1675201890064.png

 

aba
7 - Meteor

Great! Thanks @Luke_C

Definitely what I needed to get through this.

 

Much appreciated,

 

Aba

Luke_C
17 - Castor
17 - Castor

Great glad to hear

Labels
Top Solution Authors