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.

Merging 2 datasets based on specific set of conditions

hash_89
8 - Asteroid

Hi,

 

I have 2 datasets that I need to merge to get only specific sets of records. In Table 1, highlighted in green shows records with Max(Month) and Max(year1) for every Item + year.  My output should have all records from Table 1 and append records from table 2 if there is forecast information available for months after Max(Month) & Max(year1) for Item + Year in Table 1 as highlighted in yellow .

 

hash_89_2-1629304441468.png

 

Can someone help how to go about this?

 

Thanks!

 

 

 

1 REPLY 1
atcodedog05
22 - Nova
22 - Nova

Hi @hash_89 

 

Here is how you can do it. You can union to join data and the use unique tool to get first occurence.

Workflow:

atcodedog05_0-1629304854188.png

 

Hope this helps : )

 

Labels
Top Solution Authors