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

Transpose the value in the dataset

Sshasnk
8 - Asteroid

I have a dataset that I want to transpose based on fund

Input:

 

fundsubdatenamevalue
ABC12-ABC12/1/2021Sale123.01
ABC23-ABC12/2/2021Buy145
ABC34-ABC12/3/2021Purchase156

 

Output:

 

fundsubdatesaleBuyPurchase
ABC12-ABC12/1/2021123  
ABC23-ABC12/2/2021 145 
ABC34-ABC12/3/2021  156
2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Hey @Sshasnk, the input you have at the minute is already Transposed and so you'll need to Cross-Tab it to get the desired output:

 

DataNath_0-1667471645992.png

 

If you're fussy about the fields being in that order then you can use the following approach:

 

DataNath_0-1667472100804.png

 

This assigns an ascending number to each field name, which is then used during the Cross-Tab to maintain the order, before using the lookup feature of Dynamic Rename to change this back to the original header it corresponds to.

binuacs
21 - Polaris

@Sshasnk Another way of doing this

binuacs_0-1667472237161.png

 

Labels
Top Solution Authors