Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

How to convert first column data as header or excel like transpose.

sakshim
7 - Meteor

Hi 

 

I wish to transpose my data like excel.I have the following data:

 

MonthJanFebMarAprMay
Field1 8,903.77 4,383.79 7,036.86 2,456.41 1,835.62
field2    809.50 1,357.49 5,756.23 7,937.68 4,464.97
Field3 5,846.71    126.28 2,674.24 9,757.16 1,998.16
Field4 5,505.00 5,132.69 5,348.57 5,651.72 3,037.45

 

And I want output as:

 

MonthField1field2Field3Field4
Jan8903.77809.49795846.7065504.997
Feb4383.7871357.492126.27585132.688
Mar7036.865756.2342674.2375348.572
Apr2456.417937.689757.1585651.724
May1835.6194464.9651998.1643037.447
5 REPLIES 5
JosephSerpis
17 - Castor
17 - Castor

Hi @sakshim I mocked up a workflow let me know what you think?

 

Crosstab_04062020.JPG

sakshim
7 - Meteor

Hi Joseph,

 

thanks for swift reply.. really appreciate it... I have a small query here.. Have you converted numbers to string? As data type for all months appears to be string.

sakshim
7 - Meteor

I can not change the datatype of the columns so the concatenation function can not be performed on values at crosstab level. Please advise

JosephSerpis
17 - Castor
17 - Castor

Hi @sakshim I amended the workflow however your example data has , in the data so that would mean that data would be read as a string in Alteryx. In my workflow I have amended workflow I have removed the , and converted the data into a numeric data type.

sakshim
7 - Meteor

Many thanks Joseph... this is working for me perfectly now. Now, this makes me little curious to understand the use of data cleansing tool here.

Labels