Free Trial

Alteryx Designer Desktop Discussions

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

Transpose & data preparation

Scheruku
8 - Asteroid

Hello All,

 

We have data where we are trying to get the data in transpose format if a particular customer has same code consecutively for three or more months. Attached the sample data, and below the final output. Please help.

 

 

NameJanfebmaraprilmayJune JulyAugSep
Sai888888      
vyan 46464646    
vari      505050

 

4 REPLIES 4
jrgo
14 - Magnetar

Hi @Scheruku,

 

I annotated each tool so I won't go into too much details here, but this should generate the output you're looking for.

 

image.png

 

Regards,

 

Jimmy

jdunkerley79
ACE Emeritus
ACE Emeritus

Took a slightly different approach to @jrgo

 

2017-11-14_07-30-38.jpg

 

I used a lookup table to convert the month names to an integer (1-12). 

Then a couple of formula tool to create the next two months followed by a union to put together. I put the original set at the top so that they would dominate the generated data

I then added an adjusted month name back with a lead character to force the order on the CrossTab before putting into the format you wanted

 

2017-11-14_07-33-04.jpg

 

Sample attached

Scheruku
8 - Asteroid

Thank you so much for your time. 

Scheruku
8 - Asteroid

This is a great solution. Thank you so much for your time.

Labels
Top Solution Authors