Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Split column vertically based on parameter

Afranz
5 - Atom

Hello,

 

My data is structured like this - 

07-2020 | 1 | 1200

07-2020 | 2 | 1600

07-2020 | 3 | 1100

 

06-2020 | 1 | 1000

06-2020 | 2 | 500

06-2020 | 3 | 2000

----------------------------------------------

Is there a tool or set of tools I can use to split these into 6 columns, but with the middle data (1,2,3) being aligned?

 

e.g. 07-2020 | 1 | 1200 | 06-2020 | 1 | 1000

       07-2020 | 2 | 1600 | 06-2020 | 2 | 500

       07-2020 | 3 | 1100 | 06-2020 | 3 | 2000

 

The date field will be changing each iteration so I don't think I can use a set filter tool to extract "07-2020" each month.

 

Thanks.

6 REPLIES 6
atcodedog05
22 - Nova
22 - Nova

Hi @Afranz ,

 

Is this what you are looking for

atcodedog05_0-1601305850725.png

Workflow

atcodedog05_1-1601305863319.png

Hope this helps : )

 

If this helps please mark this a solution.

Afranz
5 - Atom

No, sorry I should have been more descriptive with the data. The data is stacked on top of eachother and in 3 separate columns.

 

Column 1     Column 2   Column 3

07-2020        1                1200

07-2020        2                1600

07-2020        3                1100

06-2020        1                1000

06-2020        2                 500

06-2020        3                 2000

 

Looking to accomplish

 

Column 1      Column 2    Column 3    Column 4    Column 5   Column 6

07-2020        1                  1200           06-2020      1                 1000

07-2020        2                  1600           06-2020      2                 500

07-2020        3                  1100           06-2020      3                 2000

atcodedog05
22 - Nova
22 - Nova

_

atcodedog05
22 - Nova
22 - Nova

Hi @Afranz ,

 

It took me while but i was able to get expected output.

 

Input

atcodedog05_0-1601308210088.png

Output

atcodedog05_1-1601308227242.png

 

Workflow

atcodedog05_2-1601308263495.png

 

Check the workflow and let me know. It is dynamic and not dependent on your date.

 

Hope this helps : )

 

If this helps please mark the post as solution.

 

Afranz
5 - Atom

This is great, thank you!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Afranz 

Labels
Top Solution Authors