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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
thimma_paul
Contributor III
Contributor III

unmatched values from first column as result

Requirement:

Col1    is in Table1

----

12345

2345

3456

4567

5678

Col 2  is in Table2

-------

12345

9876

1234

2345

4567

Result should be :

3456

5678

Unmatched values from Col1  as ResultColumn

1 Solution

Accepted Solutions
robert_mika
Master III
Master III

T1:
load * Inline [
Col1
12345
2345
3456
4567
5678
];

T2:
load * Inline [
Col2
12345
9876
1234
2345
4567
];

Load
Col1 as ResultColumn

Resident T1 where Not Exists (Col2, Col1);

View solution in original post

4 Replies
avinashelite

try with not exist function like this:

T1:

Load

column1

12345

2345

3456

4567

5678

from table 1;

T2:

Load

col2

12345

9876

1234

2345

4567

from table 2 where not exist(column1, col2)

robert_mika
Master III
Master III

T1:
load * Inline [
Col1
12345
2345
3456
4567
5678
];

T2:
load * Inline [
Col2
12345
9876
1234
2345
4567
];

Load
Col1 as ResultColumn

Resident T1 where Not Exists (Col2, Col1);

prajapatiamar38
Creator II
Creator II

PFA

robert_mika
Master III
Master III

You can not do that in front end

To get all 3 tables use this

Tab1:

LOAD * INLINE [

Col1

12345

2345

3456

4567

5678

];

Tab2:

LOAD * INLINE [

Col2

12345

9876

1234

2345

4567

];

t3:

load Col2 as col3

Resident Tab2;

right join

load Col1 as col3

Resident  Tab1

where not Exists(Col2,Col1)

21-May-15 11-35-43 AM.jpg