Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

Counting blank values from left join

I want to count fields that do not have a join back to the main table. For instance in the table below if I left joined to Table 2 from Table 1.  How do I count the two effective dates (Product D and F) that had no corresponding join to the main table (Table 1). Is this possible?

Example

Product(Table 1)  Zone(Table 1)  Product (Table 2)  Effective Date (Table2)

     A                       North                 A                        12/31/2012

     B                       South                B                         1/31/2011

     C                       East                  C                          9/27/2010

     D                       West                 -                                -

     E                       North                 E                          8/21/2012

     F                       East                  -                                 -    

1 Solution

Accepted Solutions
Anonymous
Not applicable

OK, try this:

count({<[Effective Date]=> - <[Effective Date]={*}>} Product)

View solution in original post

6 Replies
Anonymous
Not applicable

Possible, with set analysis.  I guess you count Product which doesn't have Effective Date.
Something like this:
count({<[Effective Date]-={*}>} Product)

Regards,
Michael

zagzebski
Creator
Creator
Author

Thanks for the response.

Unfortunately it just returns a 0. Any thoughts?

Anonymous
Not applicable

OK, try this:

count({<[Effective Date]=> - <[Effective Date]={*}>} Product)

zagzebski
Creator
Creator
Author

Awesome- it worked!

Not exactly sure how it works though - do you have a brief description on this set analysis so I can use for future reference.

Anonymous
Not applicable

No secrets, it is all in "help" 🙂

(Plus spending time on top of that...)

zagzebski
Creator
Creator
Author

Thanks - I hadn't seen it in help before I will try to track down.