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

I'd like to add a row/cell with text above the headers in my new table

assmundsonc
5 - Atom

I'd like the 'Portfolio Template' in cell E1 and have all of the headers in row 1, to be in row 2 - but I can't manage to get them to swap around.

Thanks for your help in advance.

 

assmundsonc_1-1755516327882.png

 

 

 

9 REPLIES 9
OTrieger
14 - Magnetar

@assmundsonc 

Filter that row out then union them back  Just ensure to select union by position and not by name. At the bottom you can decide the order which text will be first and which second. This is only one way how to do it.

Gaurav_Dhama_
12 - Quasar

Try this

Gaurav_Dhama__0-1755519491458.png

 

davidskaife
14 - Magnetar

Hi @assmundsonc 

 

Just because there are multiple ways of doing something, here is another approach for a laugh:

 

Add in a RecordID tool, then in a Formula tool switch ID 1 and 2 around (i.e if RecordID = 1 then 2, or if RecordID = 2 then 1) and finally use a Sort tool to re-sort in ascending order

 

davidskaife_0-1755519769147.png

 

assmundsonc
5 - Atom

Apologies, I could have been clearer.

 

I have a table, which I have then tried to Union that one cell into - like this:

assmundsonc_0-1755519873462.png

 

assmundsonc_1-1755519893808.png

 

 

Gaurav_Dhama_
12 - Quasar

You can still use any of the above approaches to get the output. Add it just before your output data tool.

assmundsonc
5 - Atom

Thanks - it isn't counting the headers as a record row:

assmundsonc_0-1755520557415.png

 

davidskaife
14 - Magnetar

@assmundsonc 

 

Try this:

 

Use the Field Info tool to get the names of the columns, add in a RecordID and Cross Tab tool to switch the column names into a row. Then Union this output, the field you want to add, AND the original stream together - configure the Union tool by position, and change the output order to stream 2, 1, 3 (note i've manually configured it but the main part is obtaining the field names)

 

davidskaife_0-1755520658109.png

 

 

 

 

Gaurav_Dhama_
12 - Quasar

Okay so you will need to get your headers into first row. Check the attached workflow. While outputting your data, skip headers in your output data tool.

assmundsonc
5 - Atom

Thanks All!!

Labels
Top Solution Authors