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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
PrajS
Contributor III
Contributor III

how compare and exclude the values from different table

Hi there,

 

I have loaded 3 Tables,  'Orders' , Table A and Table B all having OrderID as key column 

 

I need Count of orderID from Orders table that are not in Table A or Table B. 

Something like below (where OrderID is from Orders table)

COUNT( {$<

[OrderID]=e({<[OrderID]= p([OrderID_A]) >} [OrderID]),
[OrderID]=e({<[OrderID]= p([OrderID_B]) >} [OrderID]) >} [OrderID])>}

DISTINCT [OrderID]) 

Any help is really appreciated.

COUNT( {$<

[OrderID]=e({<[OrderID]= p([OrderID_A]) >} [OrderID]),
[OrderID]=e({<[OrderID]= p([OrderID_B]) >} [OrderID]) >} [OrderID])>}

DISTINCT [OrderID]) 

 

Thank You 

Labels (1)
1 Reply
PrajS
Contributor III
Contributor III
Author

 

 

Found an expression 

 

Count(

{$<[OrderDate]=P([Report Date])
*
e({<[OrderID]= p([OrderID_A])>}[OrderID])
*
e({<[OrderID]= p([OrderID_B])>}[OrderID])
>}

DISTINCT [OrderID])

But Its not giving the desired result. 

 

Looking forward for an answer