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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
amien
Specialist
Specialist

Simple Join Question

I have a table with employe data. I need to join a [Job ID] to this fact table.

This Job ID comes out of different tables. the first table is leading and on employee ID level. The second is on department ID level. the JOINS need to be on different level.

So, if there is no Job ID found in the first table (Job ID > 0) then try to find a Job ID in the second table.

The result must be one additional column added to the emplyee table : Job ID

Thanks in advanced

1 Solution

Accepted Solutions
er_mohit
Master II
Master II

Using applymap you can do this

but make sure that one primary key is available between both table

hope it helps

View solution in original post

4 Replies
er_mohit
Master II
Master II

Using applymap you can do this

but make sure that one primary key is available between both table

hope it helps

amien
Specialist
Specialist
Author

Thanks for your reply.

I know APPLYMAP .. but i don't quite understand how to use it with this issue. Can you extend your answer?

EDIT:

I think i got it:

load 2 MAPPING load tables : first column key, second JOB ID

Then in fact table load APPLYMAP('first table',First Key,APPLYMAP('second table',second key','not found')

er_mohit
Master II
Master II

the table where your Jod id is present on above if your employee data table loaded previously then make

join(employee)

if your both table having none common then in both table make rowno() as Link_Key

so that your job id ll be join

hope it helps

amien
Specialist
Specialist
Author

thanks mohir. I fixed it with a double APPLYMAP without using any JOINS