Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
SK_83
Contributor
Contributor

Load CSV and use description in field as column name

I have a csv file like the screenshot below:

SK_83_0-1698862907606.png

What I am trying to achive is to load this file and use the description in the field as a columnheader for the value. The result should look like this:

SK_83_1-1698863110395.png

 

kind regards in advance!

Labels (1)
2 Replies
MatheusC
Specialist
Specialist

Hi, @SK_83 

You can try with the Crosstable function, see this documentation

https://help.qlik.com/pt-BR/sense/August2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefix...

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I think you want to use Generic Load here:

Data:
Generic Load RecNo() as RecId, [Field 7], [Value 7] from ...;
Generic Load RecNo() as RecId, [Field 8], [Value 8] from ...;
Generic Load RecNo() as RecId, [Field 9], [Value 9] from ...;

See https://help.qlik.com/en-US/sense/August2023/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefix...

If you want script to subsequently join the generic tables into a single table, see https://qlikviewcookbook.com/2010/05/use-cases-for-generic-load/

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com