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: 
markgraham123
Specialist
Specialist

Create a dimension in script for every field

Hi All,

I'm trying to create an individual name in a dimension for every field.

Here is the Example:

  

Product A UnitsProduct B UnitsProduct C UnitsProduct D Units
100200300400

I'm trying to create a new dimension which would have names of the Product mapped to its units value.

                          New Dimension

Product A Units    A

Product B Units    B

Product C Units   C

Product D Units   D

I did it in the front end using Value list , Pick Match.

But i'm trying to do it in script so it can be simple on front end chart.

Any help is highly appreciated.

10 Replies
swuehl
MVP
MVP

Hi Mark,

the concept is explained in detail in the referenced blog post by Henric.

You cannot use a preceding LOAD or LOAD prefix on top of the CROSSTABLE LOAD, so you would need to use a subsequent RESIDENT LOAD for further transformations or field manipulations.