Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
chaitanyajami
Partner - Creator
Partner - Creator

Mapping Name with Customer

Hi all,

I have requirement and final out put like below im using a left join syntax as below but couldn't achieve, can someone please help me with the same.

Customer:
ID, Name
1,  Ravi
2,  Sankar
3,  Chandra
4,  Raj


CustomerRelation:
PlanID, Custimer
1,      2
3,      4

output is

Table:
Manager, Customer
Ravi,     Sankar
Chandra,     Raju


Syntax:


LEFT JOIN (Customer)
  ID AS Name,
  Customer as Customer
RESIDENT CustomerRelation;
1 Solution

Accepted Solutions
sunny_talwar

May be like this:

CustomerMapping:

Mapping

LOAD ID,

          Name

FROM Customer;

CustomerRelation:

LOAD ApplyMap('CustomerMapping', PlanID) as Manager,

           ApplyMap('CustomerMapping', Customer) as Customer

FROM CustomerRelation;

View solution in original post

2 Replies
sunny_talwar

May be like this:

CustomerMapping:

Mapping

LOAD ID,

          Name

FROM Customer;

CustomerRelation:

LOAD ApplyMap('CustomerMapping', PlanID) as Manager,

           ApplyMap('CustomerMapping', Customer) as Customer

FROM CustomerRelation;

MK_QSL
MVP
MVP

If your data is coming from SQL/Oracle database, try to do self join while loading them in QlikView script rather than using QV functionality.