Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
surajdhall
Contributor III
Contributor III

lookup multiple values

Hi All,

I have data that i want to bring into sales table using applymap. The data is many-to-1 relationship with sales table ie multiple code field value maps to single sales rows. Since applymap 1-1 mapping, we want to have multiple output values into single value as comma separated.

Output expected-

Capture.JPG

Code_Map:
Mapping
LOAD
key,
Code
FROM
[codes list.xls]
(biff, embedded labels, table is Lookup$);

 

Sales:
LOAD key,
Sales,
ApplyMap('Code_Map',key) as CodeList
FROM
[codes list.xls]
(biff, embedded labels, table is Sales$);

 

Thanks!

Please help.

1 Solution

Accepted Solutions
Vegar
MVP
MVP

You will need to adjust the map.

Code_Map:
Mapping
LOAD
key,
Concat(Code, ',')
FROM
[codes list.xls]
(biff, embedded labels, table is Lookup$)

Group by key;

View solution in original post

1 Reply
Vegar
MVP
MVP

You will need to adjust the map.

Code_Map:
Mapping
LOAD
key,
Concat(Code, ',')
FROM
[codes list.xls]
(biff, embedded labels, table is Lookup$)

Group by key;