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: 
Chinnu3
Contributor III
Contributor III

How do I want to map with Table 1 and 2

Hi All,

I want to map the 2 tables

Chinnu3_0-1668749661974.png

Chinnu3_1-1668749756506.png

In result i want to see this

Chinnu3_2-1668750050902.png

Thanks in advance.

Labels (4)
2 Solutions

Accepted Solutions
Bhuvi
Partner - Contributor III
Partner - Contributor III

Hii,

table1:

Mapping load

SubField(Full Name,' ') as Name,

Salary

from table1;

table2:

ID,

Name,

Sales,

ApplyMap('table1',Name,'Null') as Salary

from table2;

View solution in original post

Bhuvi
Partner - Contributor III
Partner - Contributor III

SubField(Full Name,' ',1) as Name

Give one space between the quotes

Its working for me

View solution in original post

10 Replies
Mohan_hitman
Contributor III
Contributor III


table1:
Mapping
Load
table_name,

salary

from table1;

table2:

load 

id,

name,

sales,

Applymap('table1',salary,'Un Defined') as sal,

from table2;

 

Chinnu3
Contributor III
Contributor III
Author

Hi Mohan,

Table 1 has 'Name' column but Table 2 has 'Full Name' column and fields also not matching perfectly.

Could you please share a QVF files if u run the script in ur qlik?

 

Mohan_hitman
Contributor III
Contributor III

is there any common filed betwen the tables
Chinnu3
Contributor III
Contributor III
Author

No, It has only 1st name is common in the 'Name' Column.

Bhuvi
Partner - Contributor III
Partner - Contributor III

Hii,

Try doing this,

In Table2 alias(change) the field Full Name to Name and then try to map the two tables

Mohan_hitman
Contributor III
Contributor III

chiinu 3 try this

 

Chinnu3
Contributor III
Contributor III
Author

Hi,

If I change only alias name, it will match column name but the fields will not match, because it has only first name matching and other table has full name. please let me know if you do anything  and share that qvf files

thank you.

Bhuvi
Partner - Contributor III
Partner - Contributor III

Hii,

table1:

Mapping load

SubField(Full Name,' ') as Name,

Salary

from table1;

table2:

ID,

Name,

Sales,

ApplyMap('table1',Name,'Null') as Salary

from table2;

Chinnu3
Contributor III
Contributor III
Author

It's not working.