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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Compare 2 columns in 2 table with one name

I have 2 table (MissionTable and PolicyTable)

I want a list as Priority  that contain all policy plus MissonName that are not exist in policyTable

the example is in attachment

anyone can help me?

1 Solution

Accepted Solutions
surendraj
Specialist
Specialist

Hi,

first load the Policy table.

second load the mission table.

Policy:

LOAD * INLINE [

];


Policy1:

load MissionCode,policy as MissionName

resident policy;

Concatinate(policy1)


Mission:

LOAD * INLINE [

]where NOT EXISTS(MissionCode);


Priority:

LOAD MissionName as Priority

resident mission;

drop table Policy;

drop table Policy1;


By droping these two tables,finally you have priority table.

Note:here you get missionName.you can alias it as Priority.

--Surendra

View solution in original post

4 Replies
surendraj
Specialist
Specialist

Hi,

first load the Policy table.

second load the mission table.

Policy:

LOAD * INLINE [

];


Policy1:

load MissionCode,policy as MissionName

resident policy;

Concatinate(policy1)


Mission:

LOAD * INLINE [

]where NOT EXISTS(MissionCode);


Priority:

LOAD MissionName as Priority

resident mission;

drop table Policy;

drop table Policy1;


By droping these two tables,finally you have priority table.

Note:here you get missionName.you can alias it as Priority.

--Surendra

Anonymous
Not applicable
Author

thanks bud I get not found table for priority table
I used NoConcatenate before load of priority table but it didn't work

Anonymous
Not applicable
Author

Thanks

when I put 'Policy1' instead of 'mission' in policy table in resident part, it works

surendraj
Specialist
Specialist

Yes correct,by concatenating,you get only one table.(policy1).So need to specify policy 1 in resident.