In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. 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.

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