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

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

best solution for finding missing record

Dear all

I have two table linked for a key field.

i would like to know which is the best solution for count how many record are not present in a table.

Best Regards

Riccardo

1 Solution

Accepted Solutions
syed_muzammil
Partner - Creator II
Partner - Creator II

Hi,

I didn't see your second reply. After Outer Join jus add another field

if (len(ACHIDOC)=0 ,1,0) as Flag

then do sum(Flag) in the front end , you will get the count of the missing records.

View solution in original post

5 Replies
Not applicable
Author

Hi Cattermol,

Try looking at Document Properties > Table Tab.

But if your looking for the excluded from selections you can try this code:


Count( {1-$} FieldName)



This will count the excluded values.

Regards



Not applicable
Author

Dear Ronald

i have a situation like this (after a outer join from table Oracle and table Archidoc) :

KEYORACLEARCHIDOC
431346431346431346
431347431347431347
431386431386431386
431401431401
431431431431
431459431459431459


I have to count how many record are in column ORACLE that are not in column ARCHIDOC.

in this example a have 1 record (431401)

Thank you very much

Riccardo

syed_muzammil
Partner - Creator II
Partner - Creator II

Hi,

Do you mean the count of records in table1 which are not present in table2?

Then you can jus have a different name for the KEY in each table .

Eg:

Tab1:

Load

Key,

Key as Key

from....;

tab2:

Load Key,

Key as Key2

from ....,

Then in the front end you can jus do a Count(Key1)-Count(Key2) which will give you the count of records not present in your table2 .

Regards,

Syed Muzammil.

syed_muzammil
Partner - Creator II
Partner - Creator II

Hi,

I didn't see your second reply. After Outer Join jus add another field

if (len(ACHIDOC)=0 ,1,0) as Flag

then do sum(Flag) in the front end , you will get the count of the missing records.

Not applicable
Author

Hi

thank's to all for your help.

Often the best solution is the simplest.

Big Smile

Riccardo