Alteryx Designer Desktop Discussions

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

Need to add column numbers above the headers in Output

hemant86
11 - Bolide

Hi All,

 

I have a input as shown below. I need to add column numbers above the headers. Appreciate if anyone can guide me on this.

 

Input:

Header1Header2Header3Header4Header5Header6
Data1Data2Data3Data4Data5Data6
Data1Data2Data3Data4Data5Data6
Data1Data2Data3Data4Data5Data6

 

Required Output:

123456
Header1Header2Header3Header4Header5Header6
Data1Data2Data3Data4Data5Data6
Data1Data2Data3Data4Data5Data6
Data1Data2Data3Data4Data5Data6

 

Thanks in advance

10 REPLIES 10
atcodedog05
22 - Nova
22 - Nova

Hi @hemant86 

 

Sure is this data read from the excel file or do you arrive at this after processing.

atcodedog05
22 - Nova
22 - Nova

Hi @hemant86 

 

Will this do?

 

Workflow: Make sure union tool is configured with highlighted options.

 

atcodedog05_0-1630567501518.png

 

Hope this helps : )

hemant86
11 - Bolide

Hi Altair..Thanks for your response. The initial input is a csv file and I arrive at this after processing.

atcodedog05
22 - Nova
22 - Nova

Hi @hemant86 

 

So does the above solution work for you?

hemant86
11 - Bolide

I tried this solution but its not doing exactly what you have shown in the workflow. My input for this comes from a Select Tool. Below is the result what I'm getting.

 

123456Header1Header2Header3Header4Header5Header6
Header1Header2Header3Header4Header5Header6[null][null][null][null][null][null]
[null][null][null][null][null][null]Data1Data2Data3Data4Data5Data6
[null][null][null][null][null][null]Data1Data2Data3Data4Data5Data6
[null][null][null][null][null][null]Data1Data2Data3Data4Data5Data6
atcodedog05
22 - Nova
22 - Nova

Hi @hemant86 

 

Please follow the union tool config which i have highlighted in yellow. It should resolve the issue.

hemant86
11 - Bolide

I have used the same configuration as highlighted but no luck. Not all of my columns are having data in the input though. Can that be a reason. The exact input would be something like below.

 

Header1Header2Header3Header4Header5Header6
Data1 Data3  Data6
Data1 Data3  Data6
Data1 Data3  Data6
atcodedog05
22 - Nova
22 - Nova

Hi @hemant86 

 

It does work. For ease of use just add your input before the select tool and check.

 

Workflow:

atcodedog05_0-1630570211232.png

 

Hope this helps : )

 

hemant86
11 - Bolide

It is indeed working!!...Thanks Altair🙂...Not sure what happened but may be I missed out something on the Union Tool. 

Labels