In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Pivoting data to promote first row of data to headers (in original order)

LucyDickinson
7 - Meteor

Hello, 

 

Need a bit of help with pivoting data to create new headers. I think I've got the technique, but Alteryx reorders the headers into alphabetical order rather than the order they were originally in.

 

See the attached workflow - the numbers underneath the header show the order the headers should be in.

 

Secondly - best way of getting rid of underscores. I've previously used the formula function in the dynamic rename tool.

 

Thank you :)

Lucy

2 REPLIES 2
Kenda
16 - Nebula
16 - Nebula

Hey @LucyDickinson!

 

Try out this macro we use here at our company which transposes like Excel does. After that, I used a Multi-Field Formula tool to get rid of the underscores. Lastly, I used a Dynamic Rename tool to take the field names from the first row of data.

 

Hope this helps!

 

P.S. I believe @patrick_digan deserves credit for creating this awesome tool.

LucyDickinson
7 - Meteor

This is amazing! Thank you @Kenda and @patrick_digan :) 

Labels
Top Solution Authors