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

Need some help with a transpose

ej3225
5 - Atom

Hey folks, 

 

I am having a bit of trouble figuring out a transpose/pivot of data from a report I am receiving. 

 

Currently the report I get is like the following sample table:

 

NameVolumeMiles
John  
2021-03-01

200

40
Lisa  
2021-03-0115025
Pam  
2021-03-0131018
John  
2021-03-0225050

Lisa

  
2021-03-0220045
Pam  
2021-03-0229030

 

And I would like to have the following output: 

 

DateNameVolumeMiles
2021-03-01John20040
2021-03-01Lisa15025
2021-03-01Pam31018
2021-03-02John25050
2021-03-02Lisa20045
2021-03-02Pam29030

 

Any help on this would be greatly appreciated as I have been noodling on this for the past couple of days. 

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @ej3225,

 

A combination of filter tool + join tool will do a trick:

 

Emil_Kos_0-1615480195329.png

 

Just remember that in the join tool you need to join the records by position:

Emil_Kos_1-1615480214480.png

 

Output:

Emil_Kos_2-1615480231875.png

 

 

ej3225
5 - Atom

This worked perfectly! completely forgot I could join by position. 

Labels
Top Solution Authors