Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Save Column Names from a Table into a New Field

Hello!

I have an Excel file with a table like this:

ACCT_IDHR_01HR_02HR_03HR_04HR_05
0013752267416
0024472349368
0039582436446
0047136974364

What I need, in the script, is to load this table and then save the column names (HR_01, HR_02, HR_03, HR_04, HR_05) in a new field.

So that I would have this new field (COLUMN_NAMES) with the values I mentioned.

Is there any way to do that?

Thank you!

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can use the Crosstable function for this:

Crosstable(COLUMN_NAMES, Value)

LOAD * from ...excel_file...;


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can use the Crosstable function for this:

Crosstable(COLUMN_NAMES, Value)

LOAD * from ...excel_file...;


talk is cheap, supply exceeds demand
amit_saini
Master III
Master III

Hi Mart,

This can be achieved by cross table concept. For more details please see the attachment.

Thanks,

AS