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

Putting Yearly Data side by side

Deano478
12 - Quasar

Hi Community,

 

I have a quick question that might be simple but I'm just not sure how to go about doing it basically I have three inputs containing 2020, 2021 and 2022 data and essentially I want to align the 2021 data alongside the 2020 data and same for the 2022 data alongside the 2021 data. 

 

Is this action possible in Altyerx if so any guidance would be majorly appreciate my head is fried trying to figure it out 😂

 

Many thanks to you all in advance.

 

The 2021 and 2022 data follows the same structure 

 

CodeNameSum_TotalYear
ABCD01_TCompany 1 6002020
EFGH02_GCompany 2186812020
HUJK07_BCompany 340002020
ADVK09_ACompany 49502020
QQRU90_BCompany 5105342020
GGGG09_TCompany 6198012020
AAAA06_BCompany 77002020
BFHS98_TCompany 862162020
DVSB19_VCompany 974252020
7 REPLIES 7
Felipe_Ribeir0
16 - Nebula

Hi @Deano478 

 

Without seeing the data its a little hard to guess, but i think that the cross tab tool would do the job for you.

 

Example input (after unioning 2021 and 2022 inputs)

Felipe_Ribeir0_1-1673368718676.png

 

Output

Felipe_Ribeir0_2-1673368738676.png

 

JamesCharnley
13 - Pulsar

Hi @Deano478 

 

Easiest way to do this is probably use a formula to create a field for 'Year-1' and then join Year to your new Year-1

ChrisTX
16 - Nebula
16 - Nebula

Can you post sample input and desired output?

 

You could try the Join Multiple tool, but it is limited to joining on only one field.  So you may need to first create a single concatenated field, if you need to join on multiple field values.

 

Chris

Deano478
12 - Quasar

Hey @Felipe_Ribeir0  my bad about that I'll grab a dummy sample and post it 

davidskaife
14 - Magnetar

Hi @Deano478 

 

Do you mean like this?

 

DavidSkaife_0-1673371839042.png

 

I've attached a workflow with two different ways of doing it - using multiple Join tools, and also with a Join Multiple tool :)

Felipe_Ribeir0
16 - Nebula

Hi @Deano478 

 

Here is how i would approach this problem:

Felipe_Ribeir0_0-1673372120326.png

 

Deano478
12 - Quasar

Hey @Felipe_Ribeir0 and @davidskaife  Huge thanks to both of you guys I got it too work after taking your solutions and adding a bit to them cheers to you both 

Labels
Top Solution Authors