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

Alteryx Designer Desktop Discussions

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

Using Arrange to organize data

Adam_B
8 - Asteroid

Hello, 

I have a data set, see attached.  I need to have 4 lines per supplier name, each populated with the associated MEETING in the respective QTR.  I know I should use the Arrange function but I can't get there.  Would like some help. 

 

Thank you, 

 

Adam

9 REPLIES 9
binuacs
21 - Polaris

@Adam_B can you upload the expected output result?

Adam_B
8 - Asteroid

@binuacs Thank you for the reply.  

 

Here is an example, 

 

Original Data:

YearSupplier NameMeeting Q1Meeting Q2Meeting Q3Meeting Q4
2019STAPLES1011

 

Expected outcome:

YearSupplier NameMeeting Q1Meeting Q2Meeting Q3Meeting Q4
2019STAPLES1000
2019STAPLES0010
2019STAPLES0001
2019STAPLES0000

 

 

Qiu
21 - Polaris
21 - Polaris

@Adam_B 
I hope there is a better solution.

This one might a bit lengthy. 😂

1010-Adam_B.PNG

Prometheus
12 - Quasar

@Adam_B Here's another solution.

Organize Data.PNG

Adam_B
8 - Asteroid

Is it easier to get the data to look like this? 

YearQTRSupplier NameMeeting
20191STAPLES1
20192STAPLES0
20193STAPLES1
20194STAPLES1
binuacs
21 - Polaris
Adam_B
8 - Asteroid

@binuacs I have data that looks like this right now:

YearSupplier NameQ1Q2Q3Q4
2018STAPLES0000
2019STAPLES1100
2020STAPLES1001
2021STAPLES0111

 

I need to transpose it and create data to look like this:

YearQTRSupplier NameMeeting
20181STAPLES0
20182STAPLES0
20183STAPLES0
20184STAPLES0
20191STAPLES1
20192STAPLES0
20193STAPLES1
20194STAPLES1
20201STAPLES1
20202STAPLES0
20203STAPLES0
20204STAPLES0
20211STAPLES0
20212STAPLES1
20213STAPLES1
20214STAPLES1

Thank you 

Adam 

 

binuacs
21 - Polaris

@Adam_B use can use the same workflow in your input

image.png

Adam_B
8 - Asteroid

@binuacs Thank you!

Labels