Alteryx Designer Desktop Discussions

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

How to transpose columns to rows and put headers in the row too

Carl_in_CT
7 - Meteor

OK, one more today, hoping to finish this data output today.

 

I have to transpose this:

 

Transaction TypeBenefit Monthcode 5601code 5602code 5603code 5604
TRN12/18/2018175.548  
PRK-CR12/18/2018  500


Into this:

 

Transaction TypeBenefit Month  
TRN12/18/2018code 5601175.5
TRN12/18/2018code 560248
TRN12/18/2018code 5603 
TRN12/18/2018code 5604 
PRK-CR12/18/2018code 5601 
PRK-CR12/18/2018code 5602 
PRK-CR12/18/2018code 560350
PRK-CR12/18/2018code 56040

 

I can transpose the data fine but I can't figure how to get the "code" field headers to be included in the new rows.

11 REPLIES 11
Thableaus
17 - Castor
17 - Castor

Hi @Carl_in_CT

 

transpose.PNG

 

Isn't this config good for your solution?

 

Cheers,

Carl_in_CT
7 - Meteor

Unless I'm missing something that doesn't bring the code headers into the row, just the data.

Thableaus
17 - Castor
17 - Castor

@Carl_in_CT

 

It actually does.


See WF attached.


Cheers,

Carl_in_CT
7 - Meteor

Yeah, when I run yours it works but mine does not but it looks like it's set up the same, I just have more fields in the real version.

Thableaus
17 - Castor
17 - Castor

Hmm..I see.

 

Could you please just post a printscreen of how your transpose tool is configured? So we can check if there's anything else missing.

Carl_in_CT
7 - Meteor

Capture.PNG

Carl_in_CT
7 - Meteor

Woops, that pic was wrong, I had been tinkering to try to get it to work.  This is the real thing.

 

Capture.PNG

GrahamL
8 - Asteroid

Hi there

 

Looking at your screenshot, it looks like columns 5601-5604 shouldn't be checked in the key fields dialog.

 

Hope this helps

 

Cheers

 

G

GrahamL
8 - Asteroid

Ignore last post as I was looking at the old screenshot!

 

Is it the deduction amount or subsidy amount you want as values as you have one checked as a key field and the other checked as a data field

 

Cheers

 

G

Labels