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

How to do a join based on multiple groups?

AmyL1
7 - Meteor

I want to do a unique type of join, but I am not sure if it's possible. Basically, I have a list of Record IDs from 1-5:

 

Record ID Original
1
2
3
4
5

 

I have a separate table that also has Record IDs, so that's where the join would come into play:

 

DateRecord ID
1/30/20192
1/30/20194
2/30/20191

 

However, I want to join this so the result has something for each Original Record ID for each date. So here the output would look like:

 

DateRecord IDRecord ID Original
1/30/2019NULL1
1/30/201922
1/30/2019NULL3
1/30/201944
1/30/2019NULL5
2/30/201911
2/30/2019NULL2
2/30/2019NULL3
2/30/2019NULL4
2/30/2019NULL5

 

Is this type of join possible in Alteryx? The actual data I'm working with is a lot more complex than this example, so I am hoping I can automate this somehow. I am also trying to avoid adding dates to the first table and including that in my join if possible

 

Thanks in advance!

2 REPLIES 2
DiganP
Alteryx Alumni (Retired)

@AmyL1 I think you are looking for the append fields tool combined wtih the formula, sort and unique tool. 

 

alteryx_logo.png

Attached is the workflow.

Digan
Alteryx
AmyL1
7 - Meteor

This is exactly what I was looking for! Thank you!!

Labels
Top Solution Authors