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

How to transpose in a difficult way?

Axis
7 - Meteor

Hi everyone, 

I'm struggling with my workflow as I'm not an expert and couldn't find the good solution for my problem. 


It's a kind of transposition, I'm not sure how to call it. 

Here is my input data. I have a line identified by its KEYS, different dates and a few characteristics (data) for each date. 

The type of characteristics are the same by column but the value can change each day. 

Here is my example (maybe easier than my explanations) : 

KEY_1KEY_2DateCharacteristic 1Characteristic 2Characteristic 3Characteristic 4Characteristic 5
AAAAAA.130/11/2020a.1a.2a.3a.4a.5
AAAAAA.129/11/2020aa.1aa.2aa.3aa.4aa.5
AAAAAA.126/11/2020aaa.1aaa.2aaa.3aaa.4aaa.5
AAAAAA.124/11/2020aaaa.1aaaa.2aaaa.3aaaa.4aaaa.5
BBBBBB.123/11/2020b.1b.2b.3b.4b.5
BBBBBB.122/11/2020bb.1bb.2bb.3bb.4bb.5
BBBBBB.121/11/2020bbb.1bbb.2bbb.3bbb.4bbb.5



Here is what I want as output : 

I want less columns and the type of characteristics (data) specified in each row and then the value of these characteristics but for each dates. 

KEY_1KEY_2DateCharacteristicValue
AAAAAA.130/11/2020Characteristic 1a.1
AAAAAA.129/11/2020Characteristic 1aa.1
AAAAAA.126/11/2020Characteristic 1aaa.1
AAAAAA.124/11/2020Characteristic 1aaaa.1
AAAAAA.130/11/2020Characteristic 2a.2
AAAAAA.129/11/2020Characteristic 2aa.2
AAAAAA.126/11/2020Characteristic 2aaa.2
AAAAAA.124/11/2020Characteristic 2aaaa.2
AAAAAA.130/11/2020Characteristic 3a.3
AAAAAA.129/11/2020Characteristic 3aa.3
AAAAAA.126/11/2020Characteristic 3aaa.3
AAAAAA.124/11/2020Characteristic 3aaaa.3
AAAAAA.130/11/2020Characteristic 4a.4
AAAAAA.129/11/2020Characteristic 4aa.4
AAAAAA.126/11/2020Characteristic 4aaa.4
AAAAAA.124/11/2020Characteristic 4aaaa.4
AAAAAA.130/11/2020Characteristic 5a.5
AAAAAA.129/11/2020Characteristic 5aa.5
AAAAAA.126/11/2020Characteristic 5aaa.5
AAAAAA.124/11/2020Characteristic 5aaaa.5
BBBBBB.129/11/2020Characteristic 1b.1
BBBBBB.126/11/2020Characteristic 1bb.1
BBBBBB.124/11/2020Characteristic 1bbb.1
BBBBBB.129/11/2020Characteristic 2b.2
BBBBBB.126/11/2020Characteristic 2bb.2
BBBBBB.124/11/2020Characteristic 2bbb.2
BBBBBB.129/11/2020Characteristic 3b.3
BBBBBB.126/11/2020Characteristic 3bb.3
BBBBBB.124/11/2020Characteristic 3bbb.3
BBBBBB.129/11/2020Characteristic 4b.4
BBBBBB.126/11/2020Characteristic 4bb.4
BBBBBB.124/11/2020Characteristic 4bbb.4
BBBBBB.129/11/2020Characteristic 5b.5
BBBBBB.126/11/2020Characteristic 5bb.5
BBBBBB.124/11/2020Characteristic 5bbb.5


I will really appreciate your help 🙂 

The example is to illustrate I have nearly 2 million rows so I need this in a quite dynamic way and not manually. 
I know it can be a bit confusing, I tried to be as clear as possible. If you need more information don't hesitate. 

Thanks in advance. 

Best regards,
Axis

4 REPLIES 4
PhilipMannering
16 - Nebula
16 - Nebula

Hi @Axis 

 

You want to use the Transpose Tool.

A solution is attached for you,

PhilipMannering_0-1606753369328.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @Axis 

 

@PhilipMannering has provided the best, easiest and most straight forward solution possible.🙂

 

I was gonna go for it but why my workflow would look the same😅

grazitti_sapna
17 - Castor

Hi @Axis,

 

Here is my take on this

 

grazitti_sapna_0-1606812020842.png

 

Is this what you are looking for?

 

 

Sapna Gupta
Axis
7 - Meteor

Hi, 

Thanks for your precious help it was easier than expected 🙂 

Best regards,
Axis

Labels