Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Add a row above header

videet
8 - Asteroid

 

I have a table like below with headers(In English) name, email, id, hire date.

I want  to add header with local language name above English headers name

 

Input

Name EmailIDHire date
ap125-06-21
bq226-06-21
cr327-06-21

 

In output table i want to add one more header in local language along with English headers

Output

NomeE-mailIDData di assunzione
Name EmailIDHire date
ap125-06-21
bq226-06-21
cr327-06-21

I also have mapping for it

LocalEng Names
NomeName 
E-mailEmail
IDID
Data di assunzioneHire date

 

Any idea how it 

5 REPLIES 5
apathetichell
19 - Altair

So Alteryx doesn't have multi-row headers so there are basically two ways:

 

1) union in the new set of rows before an output. This changes the format of your data.

2)  nested tables. This is harder but keeps your data in the right format on render to excel.

 

Here's an example of the second solution...

AkimasaKajitani
17 - Castor
17 - Castor

Hi @videet 

 

I made sample workflow.

 

AkimasaKajitani_0-1624632393374.png

The weak point is that the data type converted to string.

 

Result:

AkimasaKajitani_1-1624632485401.png

 

 

videet
8 - Asteroid

@AkimasaKajitani 

 

It there any way we can change data type to previous what was original

apathetichell
19 - Altair

In alteryx or in excel? In alteryx the short answer is no - you need everything in the same datatype in a column and that's string if it's numbers and characters.  Two week ago I recommended nested tables which should keep datatypes when rendered into excel.

atcodedog05
22 - Nova
22 - Nova

Hi @videet 

 

Here is how you can do it. The trick is to first write first set of headers and then write actual table from 2nd row.

 

Workflow:

atcodedog05_0-1625640026399.png

1. The first branch output tool is writing the local headers.

2. The second branch output tool is writing the actual table from 2nd row and datatype remains same.

 

Output:

atcodedog05_1-1625640105667.png

As you can ID is numeric.

 

Hope this helps 🙂

Labels