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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get values using lookup Table

Hi All,

I have Look up table as follow:

1.PNG

I have to Populate the Product Values in Relate table using Lookup:

2.PNG

Please suggest solution regarding this.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this script:

Mapping:

Mapping

LOAD * Inline [

LOOKUP, PRODUCT

1, P1

2, P2

3, P3

];

Table:

LOAD IDs,

  MapSubString('Mapping', IDs) as Product;

LOAD * Inline [

IDs

1,2,3

1,2

2,3

] (delimiter is |);


Capture.PNG

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Look into MapSubString() function:

http://help.qlik.com/sense/2.0/en-US/online/#../Subsystems/Hub/Content/Scripting/MappingFunctions/Ma...

This is from Qlik Sense help, but should work the same way in QlikView

sunny_talwar
MVP
MVP

Try this script:

Mapping:

Mapping

LOAD * Inline [

LOOKUP, PRODUCT

1, P1

2, P2

3, P3

];

Table:

LOAD IDs,

  MapSubString('Mapping', IDs) as Product;

LOAD * Inline [

IDs

1,2,3

1,2

2,3

] (delimiter is |);


Capture.PNG