Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Transpose Tool Problem/Example

mp2624
6 - Meteoroid

Hi All,

 

I have a bit of a problem figuring out how to clean/transpose my source table which currently looks like this:

 

Entity NameExpense AExpense A Expense AExpense BExpense BExpense B
 201720162015201720162015
A1338411
B23457712
C2666913

 

Ideally the table I want should look something like this: 

 

Entity NameYearExpenseValue
A2017Expense A XX
A2016Expense A XX
A2015Expense A XX
A2017Expense BXX
A2016Expense BXX
A2015Expense BXX
B2017Expense A XX
B2016Expense A XX
B2015Expense A XX
B2017Expense BXX
B2016Expense BXX
B2015Expense BXX
C2017Expense A XX
C2016Expense A XX
C2015Expense A XX
C2017Expense BXX
C2016Expense BXX
C2015Expense BXX

 

Any help with the workflow is much appreciated!!!

4 REPLIES 4
jasperlch
12 - Quasar

Hi @mp2624

 

I would suggest taking the first 2 header rows out and concat them by the Summarize tool before joining this new header row back to the dataset. Then, just do the Transpose as normal and separate Year and Expense by Text to Column.

 

Capture1.PNG 

Example attached. Hope this helps.

Thableaus
17 - Castor
17 - Castor

Hi @mp2624!

Here's the solution that I thought. Workflow appended (fewer steps).

 

SimpleSolution.PNG


Cheers,

ponraj
13 - Pulsar

Here is the sample workflow for your case. Hope this is helpful. 

 

workflowworkflowResultsResults

mp2624
6 - Meteoroid

Thank you very much all, problem solved!

Labels