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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to use tMap to combine two tables with different headers

Hello, I currently have 2 tables that I would like to combine. However, when I try combining them using tMap, the columns from one of the table is empty.

 

 Here is the first table:

ID | Username | Age

1 | Adam | 19

2 | Sam | 21

3 | Alex | 18

 

Here is the second table:

Username | Earning

Sam | 291.2

Alex | 182.1

 

Here is the output I want

 

ID | Username | Age | Earning

2 | Sam | 21 | 291.2

3 | Alex | 18 | 182.1

 

 

Currently, my tMap outputs this:

ID | Username | Age | Earning

NULL | NULL | NULL | 291.2

NULL | NULL | NULL | 182.1

 

How can I go around doing so and solving this issue? Thanks.

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@DarrylSSY,please do the below way in tmap.0683p000009Lxc5.png

View solution in original post

3 Replies
iamabhishek
Creator III
Creator III

I believe this is what you need to setup at your tMap expressions so that you will get the exact same match for the two inputs.

0683p000009Lxc4.jpg

 

All you need to do is have your match model and join model change as per your requirement.

 

manodwhb
Champion II
Champion II

@DarrylSSY,please do the below way in tmap.0683p000009Lxc5.png

manodwhb
Champion II
Champion II

@DarrylSSY,still do yo0ou have issue?