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: 
ridwan
Contributor
Contributor

VLOOKUP

Hello,

Could you help me with this problem.

Suppose I have a data:
Andrea
Andrea
Brian
Brian
Steve

and another data:
Andrea   Sweden
Brian       UK

I want to join both data, and the final result is:
Andrea      Sweden
Andrea      Sweden
Brian          UK
Brian          UK
Steve         "Other"

My question is, how to add the "other" in the result in the load script?

Labels (1)
4 Replies
hic
Former Employee
Former Employee

By using ApplyMap():

MapTable:
Load * Inline
[Name,Country
Andrea,Sweden
Brian,UK];

RealData:
Load
ApplyMap('MapTable',Name,'Other') as Country,
...
Resident Data;

See also https://community.qlik.com/t5/Qlik-Design-Blog/Don-t-join-use-Applymap-instead/ba-p/1467592 

vinieme12
Champion III
Champion III

Use mapping load and applymap

 

Map_Country:

Mapping Load * inline[

Name,Country 

Andrea,Sweden 

Brian,UK 

]; 

 

Maintable:

Load *, ApplyMap('Map_Country',Name,'Other') as Country

From yourdatadource;

 

 

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

Refer below 

https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/Mapping...

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
NagaBabu
Contributor
Contributor

Once You have do try apply map.