Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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.

1 Solution

Accepted Solutions
sunny_talwar

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

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

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