In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

How to copy column name to first row?

JJJJC
7 - Meteor

How can I copy column names of a table to first row so that when I try to stack (union) it with another table on same excel sheet, I can still see the column names?

6 REPLIES 6
Emil_Kos
17 - Castor
17 - Castor

Hi @JJJJC,

 

Legendary @MarqueeCrew wrote a post about an elegant and simple solution to achieve it!

 

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Column-headers-as-first-row-of-data/m-...

atcodedog05
22 - Nova
22 - Nova

Hi @JJJJC 

 

Can you sample input and expected output.

 

Edit: @Emil_Kos yup my approach would also be similar ðŸ˜…

JJJJC
7 - Meteor

input1:

header1header2
A1
B2

 

input2:

header3header4
x3
z4

 

expected output:

header1header2
A1
B2
  
header3header4
x3
z4

 

Currently, when I try to union the two table by position, I would lose header3 and header4.

atcodedog05
22 - Nova
22 - Nova

Hi @JJJJC 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1629991342575.png

 

Hope this helps : )

JJJJC
7 - Meteor

Thank you both! 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @JJJJC 

Cheers and have a nice day!

Labels
Top Solution Authors