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: 
Anonymous
Not applicable

Lookup, ApplyMap, Joins - Need Help

Table A
Ticket NoCustomer Name
123Shankar
121Arun
31231Vijay
34535Sandy
3534James

  

Table B
CustomerCity
ShankarChennai
ArunMadurai
VijaySingapore
SandyBelgium
JamesUSA

I want to map the city in Table B to the Customer Names in Table A.

1. I have tried renaming the Customer in Table B as Customer Name to create a sync but the result is not accurate.

Is there a way to create a lookup or applymap or any better solution? Please suggest.

35 Replies
Colin-Albert
Partner - Champion
Partner - Champion

Are your attachments still being moderated as I cannot see any attached files.

Anonymous
Not applicable
Author

Hi Colin,

Attaching again..

Colin-Albert
Partner - Champion
Partner - Champion

No attachment. Can you just paste the relevant section of your load script into the post

Anonymous
Not applicable
Author

TableA:

LOAD [Ticket No],

    [Customer Name],

    ApplyMap('TableB',[Customer Name],'Not Specified') as City

FROM

(ooxml, embedded labels, table is Sheet1);

TableB:

LOAD Customer,

    City

FROM

(ooxml, embedded labels, table is Sheet1);

Colin-Albert
Partner - Champion
Partner - Champion

Try this, You just had the word MAPPING missing from your load of Table B, and you must load the mapping table BEFORE you use the applymap command.

TableB:

MAPPING LOAD

        Customer,

         City

FROM

(ooxml, embedded labels, table is Sheet1);

TableA:

LOAD [Ticket No],

    [Customer Name],

    ApplyMap('TableB',[Customer Name],'Not Specified') as City

FROM

(ooxml, embedded labels, table is Sheet1);

Anonymous
Not applicable
Author

Colin - It worked.

I have no words to appreciate you friends.

Special thanks to Colin and Chandel..