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

ApplyMap(), looking for advice?

Hi All

Could anyone give me some hints related to below issue:

[Mapping table A]:

mapping LOAD * INLINE [

    ID, Name

    A1, Apple

    B2, Boy

    C3, Cat

];

[Table1]:

LOAD CustID,

ApplyMap('[Mapping table A]', CustID, 'Unknown') as [Full Name],

     Values

FROM

MappingExercise.xls

(biff, embedded labels, table is [Sheet1$]);

My excel table structure is:

CustIDValues
A1100
B2200
C3101

i would like to display full name, however, after reload the scripts, i got the result as below:

CustIDFull NameValues
A1 100
B2 200
C3 101

Pls advice. Thanks

1 Solution

Accepted Solutions
Sokkorn
Master
Master

Hi Michael,

User this ApplyMap('Mapping table A', CustID, 'Unknown') as [Full Name],

Regards,

Sokkorn

View solution in original post

4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this.

Mapping_table:

mapping LOAD * INLINE [

    ID, Name

    A1, Apple

    B2, Boy

    C3, Cat

];

[Table1]:

LOAD CustID,

ApplyMap('Mapping_table', CustID, 'Unknown') as [Full Name],

     Values

FROM

MappingExercise.xls

(biff, embedded labels, table is [Sheet1$]);

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Sokkorn
Master
Master

Hi Michael,

User this ApplyMap('Mapping table A', CustID, 'Unknown') as [Full Name],

Regards,

Sokkorn

Not applicable
Author

it works. Thanks.

Not applicable
Author

Thanks. it is work.