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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register 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
maxgro
MVP
MVP

pplease ost your doc

my result, with the data you posted, is this

1.png

Anonymous
Not applicable
Author

Have you tried Left join ?

Anonymous
Not applicable
Author

Hi Chandel,

Below is the script I am using.

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);

Result is below.

result.PNG

I am not using inline data. I am using data from 2 sample excel files.

Colin-Albert
Partner - Champion
Partner - Champion

Can you post your script?

you will need to change my example script to match your actual field names, tables and file paths.

Anonymous
Not applicable
Author

I have attached my files that I am using as data, the script and the result. please review and share your suggestions.

Anonymous
Not applicable
Author

Hi Colin please review the script, files with data and the result posted above and share your thoughts.

MayilVahanan

HI

PFA

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

I think this will resolve your problem. Try and let me know what data you are getting.


TableA:

LOAD [Ticket No],

    [Customer Name] as Customer,

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

FROM

(ooxml, embedded labels, table is Sheet1);

left join (TableA)

TableB:

LOAD Customer,

    City

FROM

(ooxml, embedded labels, table is Sheet1);



Thanks

BKC

Anonymous
Not applicable
Author

See the attached with Left join

   

Ticket NoCustomerCity
121ArunMadurai
123ShankarChennai
3534JamesUSA
31231VijaySingapore
34535SandyBelgium
Anonymous
Not applicable
Author

I am using personal edition. hence I cannot open your QVW. Please suggest in the forum.