Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Transpose Row into multiple columns

Genty
7 - Meteor

Hi all,

 

I am having to create a workflow to take rows from a excel document and push them into server.

 

because they are from rows alteryx sees them like the below.

 

Genty_0-1628070648938.png

 

I need to get them to columns like the below (but with all data):

 

PureOnline HDTotalTotalTotalTotalTotal
2021-05-021215.2727.7667887119.4495544.24773.46532

 

from there I can rename the headers and push it into a table.

6 REPLIES 6
atcodedog05
22 - Nova
22 - Nova

Hi @Genty 

 

Can you provide a sample of input data in an excel file.

 

Method should be transpose and crosstab

Genty
7 - Meteor

See attached, this is a cut down version of sample data but the format in which it is pulled

atcodedog05
22 - Nova
22 - Nova

Hi @Genty 

 

Here is how you can do it. I have used sample of data.

 

Workflow:

atcodedog05_0-1628072298213.png

1. Since there are multiple total i am using record id to set a distinct

2. Using formula tool to create new total name as total1, total2

3. Using transpose to convert date columns to rows with PureonlineHD, RecordID and New column as keys

4. Using crosstab to convert to table with Name as key, New name as name and value as value.

 

Hope this helps : )

atcodedog05
22 - Nova
22 - Nova

Hi @Genty 

 

We can rename total1, total2 as "total ", "total  " where number is replaced with number of spaces.

 

Workflow:

atcodedog05_0-1628072681243.png

 

It maintains distinct names and also gives a look-alike feel.

 

Hope this helps : )

 

Genty
7 - Meteor

thanks for this.

sgwong
8 - Asteroid

Need advice on how to convert rows to multiple columns as per attached

Labels
Top Solution Authors