We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Fix Row Order after Transpose and Crosstab

tlhoyt
7 - Meteor

I had a table where I had to flip flop the rows and columns, which I did successfully with a transpose, following by a crosstab. However, when doing the crosstab, it inadvertently switched the row order on me. 

 

Below is a view after the transpose:

tlhoyt_0-1687442684319.png

 

Below is a view after the crosstab; ChangeinNAV_Bond is now above Sum_PriorQ_NAV:

tlhoyt_1-1687442718134.png

 

Does anyone know how to fix this so that ChangeinNAV_Bond remains below Sum_PriorQ_NAV

8 REPLIES 8
binuacs
21 - Polaris

@tlhoyt One way of doing this with the batch macro

binuacs_0-1687443808786.png

 

tlhoyt
7 - Meteor

Hmm. That didn't totally work because I have multiple columns of data that I need:

tlhoyt_0-1687446519096.png

 

I need PriorQ_Allocation to be the column headers. After implementing your solution, it appears to be squishing them all into one column:

 

tlhoyt_1-1687446548612.png

tlhoyt_2-1687446548673.png

Any idea how to get the columns to be the PriorQ_Allocation values?

binuacs
21 - Polaris

@tlhoyt I thought you want the output like the one you provided? Can you upload a sample input file and the expected output?

tlhoyt
7 - Meteor

This is what the input looks like:

tlhoyt_0-1687447679901.png

This is what I want the output to look like:

tlhoyt_1-1687447711749.png

 

binuacs
21 - Polaris

@tlhoyt Can you try the attached workflow

binuacs_0-1687449501633.png

 

tlhoyt
7 - Meteor

When I try to import your workflow, I am unable to replicate that it looks like you are doing:

tlhoyt_0-1687450228320.png

 

binuacs
21 - Polaris
tlhoyt
7 - Meteor

That appears to have worked. Thanks!

Labels
Top Solution Authors