<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Set analysis with null and multiple tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-null-and-multiple-tables/m-p/1633441#M47158</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have two tables coupled by one field, which is email. Unique emails exist in both tables, but some are common. I would like to use set analysis to list the emails of all customers that either don't have an entry in one of the tables, or has an entry, but where the value of a field is null. Here is a simple example:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Set NullInterpret = '';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Customer:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ID , Name , Email &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;123 , 'bob' , 'bob@cmail.com',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;124 , 'penny' , 'penny@cmail.com',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;125 , 'fitch' , 'fitch@cmail.com',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;126 , 'clair' , 'clair@cmail.com',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;127 , 'tom' , 'tom@cmail.com'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Newsletter:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Email, Subscribed, Marketing,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'bob@cmail.com', 1, 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'penny@cmail.com', , ,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'fitch@cmail.com', 1, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'tom@cmail.com', , 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'glenn@cmail.com', 1, 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'jay@cmail.com', , ,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I am trying to list all email addresses that are either not listed in the Newsletter table at all, or are listed, but has the fields "Subscribed" and "Marketing" set to null.&lt;/P&gt;&lt;P&gt;I have tried to create a table with a calculated dimension like this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;=aggr(only({$-&amp;lt;Marketing={'1'}&amp;gt;-&amp;lt;Subscribed={'1'}&amp;gt;} Email), Email)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But that doesn't work. jay is not included using that expression, and I guess it is because he is not listed as a Customer. How can I solve this?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 06:32:36 GMT</pubDate>
    <dc:creator>fluxfrog</dc:creator>
    <dc:date>2019-10-10T06:32:36Z</dc:date>
    <item>
      <title>Set analysis with null and multiple tables</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-null-and-multiple-tables/m-p/1633441#M47158</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have two tables coupled by one field, which is email. Unique emails exist in both tables, but some are common. I would like to use set analysis to list the emails of all customers that either don't have an entry in one of the tables, or has an entry, but where the value of a field is null. Here is a simple example:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Set NullInterpret = '';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Customer:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ID , Name , Email &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;123 , 'bob' , 'bob@cmail.com',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;124 , 'penny' , 'penny@cmail.com',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;125 , 'fitch' , 'fitch@cmail.com',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;126 , 'clair' , 'clair@cmail.com',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;127 , 'tom' , 'tom@cmail.com'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Newsletter:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD * Inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Email, Subscribed, Marketing,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'bob@cmail.com', 1, 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'penny@cmail.com', , ,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'fitch@cmail.com', 1, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'tom@cmail.com', , 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'glenn@cmail.com', 1, 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'jay@cmail.com', , ,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I am trying to list all email addresses that are either not listed in the Newsletter table at all, or are listed, but has the fields "Subscribed" and "Marketing" set to null.&lt;/P&gt;&lt;P&gt;I have tried to create a table with a calculated dimension like this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;=aggr(only({$-&amp;lt;Marketing={'1'}&amp;gt;-&amp;lt;Subscribed={'1'}&amp;gt;} Email), Email)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But that doesn't work. jay is not included using that expression, and I guess it is because he is not listed as a Customer. How can I solve this?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 06:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-null-and-multiple-tables/m-p/1633441#M47158</guid>
      <dc:creator>fluxfrog</dc:creator>
      <dc:date>2019-10-10T06:32:36Z</dc:date>
    </item>
  </channel>
</rss>

