Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
New-Qlik
Creator III
Creator III

Mapping load

Hellow,

 

I ahve a table wuith few columns i wnat to replace one column with data coming from other excel sheet.

I tried ampping load but didnt get accurate result.

MainTable:

Name id Code

AAA , 01

AAA , 03

AAA ,10

AAA ,11

bbb, 01

bbb, 03

bbb,10

bbb,11

 

code value should be replaced with code_test from different excel

ie below

 

AAA , 01

AAA , 03

AAA ,05

AAA ,06

bbb, 01

bbb, 03

bbb,05

bbb,06

 

 

 

1 Solution

Accepted Solutions
New-Qlik
Creator III
Creator III
Author

i did it by concatenating name and code and created new field. Finally did apply map based on this new concatenated fields and it worked.

View solution in original post

7 Replies
mahaveerbiraj
Creator II
Creator II

Hi Avaneet,

could you please mention your mapping code 

Thanks & Regards 

Mahaveer 

New-Qlik
Creator III
Creator III
Author

Maptable:

Mapping

Load 

Name,

code_new

from ***

//////////////////////////////////////////////

Maintable:

Load *,

ApplyMap('Maptable', "Name") as new_code

From ***

abhishek2
Contributor III
Contributor III

Try this:

ApplyMap('Maptable', Name) as new_code

New-Qlik
Creator III
Creator III
Author

Thanks for replying, it didnt work. I want to amp based on combination of these two columns name and code

JordyWegman
Partner - Master
Partner - Master

Hi Avneet,

Isn't your field the in the main table called [Name id]? 

Then use this mapping load:

ApplyMap('Maptable', [Name id],'**') as new_code

It needs the field on which it will be mapped.

Jordy

Climber 

Work smarter, not harder
New-Qlik
Creator III
Creator III
Author

i did it by concatenating name and code and created new field. Finally did apply map based on this new concatenated fields and it worked.

New-Qlik
Creator III
Creator III
Author

Hi ,

i have there columns in mapping table so i concatenate two columns.

CodeMapping:
Mapping
LOAD
Name & Code as NameCode,
Code_new
FROM **;

 

Load
Employee_id,
Name
NameCode,

ApplyMap('CodeMapping',"NameCode") as Code
From **

Rergards

AT