Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
rdsuperlike
Creator
Creator

Connected Vs Unconnected data

hi,

I have Table1(data comes into table 1 from sql database)-->Map Table. This is simplified model for example

I want an exception report that has :

All Table1 Data that made into qlikview MINUS Table1 Data that joined to Map Table.

So, Unconnected - Connected data of table1.

Example:

Table1:   

Cust IdCust nameCountry
1John SmithGermany
2Greg DavisUSA
3John RayUK
4Davis RyonFrance
5Megan JoshUSA
6Bruce WillisItaly

Map Table:  

Order IDCustomer IDOrder Date
1030822/2/2015
1056743/4/2015
1865053/3/2015

So, after loading into qvw we can see that all that r in Italics(greg, davis, davis ryon and Megan Josh) must have  joined.

I want to see what all data was not connected. I know here its easy since there r just 3 records not connected. I am talking  abt real life scenario where millions of rows that doesnt get connected. I want to figure out a way to get this @records in an exception report of Connected Vs Unconnected data.

Any approach or prototype that someone has already worked on?

Any ideas/suggestions are appreciated.

Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You can use NOT EXISTS():

LOAD "Customer ID"

FROM MAPTABLE;

LOAD "Cust ID","Cust Name", Country

FROM Table1

WHERE NOT EXISTS("Customer ID", "Cust ID");

edit:

Attaching a QVW that demonstrates above script based approach in in addition an expression only approach without modifying the original script.

View solution in original post

3 Replies
swuehl
MVP
MVP

I haven't understood what you are trying to achieve. Could you elaborate with some sample lines of data and your requested result?

rdsuperlike
Creator
Creator
Author

Updated the post.

Thanks

swuehl
MVP
MVP

You can use NOT EXISTS():

LOAD "Customer ID"

FROM MAPTABLE;

LOAD "Cust ID","Cust Name", Country

FROM Table1

WHERE NOT EXISTS("Customer ID", "Cust ID");

edit:

Attaching a QVW that demonstrates above script based approach in in addition an expression only approach without modifying the original script.