Alteryx Designer Desktop Discussions

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

Multiple rows of data to columns

IH
5 - Atom

Hi, I've tried searching with no luck, 

 

I have an awful looking set of data which looks something like the left where sets of data repeat every three lines.

I've got to the point where I have an index column that repeats itself with Record ID and a formula which uses Mod([RecordID]-1,3)=1.

However I can't wrap my head around how to use this repeating index of 1-3 to spread out horizontally from the current data.

 

The actual data has repeating sets of data which stretch 16 columns and 3 rows.

 

Thank you in advance and happy new year everyone.

 

alteryx.png

 

6 REPLIES 6
caltang
17 - Castor
17 - Castor

Can you provide the .xlsx instead of an image?

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
IH
5 - Atom

Just did, thank you

flying008
15 - Aurora

Hi, @IH 

 

FYI.

 

录制_2024_01_05_16_20_55_494.gif

 

Input        
ABC      
AgeGenderEthnicity      
IDWeightEyecolor      
NameHeightInterests      
35MaleAsian      
brad12372Brown      
Brad180Football      
27MaleCaucasian      
riley34580Blue      
Riley190Basketball      
         
Output        
AgeGenderEthnicityIDWeightEyecolorNameHeightInterests
35MaleAsianbrad12372BrownBrad180Football
27MaleCaucasianriley34580BlueRiley190Basketball

 

******

If can help you get your want, please mark it as a solution and give a like for more share.

caltang
17 - Castor
17 - Castor

An alternate approach:

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
CoG
14 - Magnetar

@flying008- That's an excellent tool!

 

Also, building off of @caltang's, here is another variant for the solution:

_Main.png

IH
5 - Atom

Thank you so much, this tool solved the task like it's nothing.

Hope you have a wonderful day.

Labels
Top Solution Authors