<?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 to include Nulls by Join (not Nulls in same table) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-include-Nulls-by-Join-not-Nulls-in-same-table/m-p/273242#M102251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's one that I feel should be doable but I can't get it working!&amp;nbsp; Hoping you can help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my data model:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ResearchDashboard.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8114_ResearchDashboard.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,&amp;nbsp; I need a straight table chart that shows every record in the Coverage table, and a countof the associated records in the FACT table - from &lt;STRONG&gt;&lt;EM&gt;SUM(%Counter_Service)&lt;/EM&gt;&lt;/STRONG&gt; - with the following specific requirements:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;All records in the Coverage table must be shown, &lt;EM&gt;with all selections removed, &lt;SPAN style="text-decoration: underline;"&gt;except some specific fields&lt;/SPAN&gt;&lt;/EM&gt;.&amp;nbsp; E.g. let's say there are 1000 records in the coverage table, but only 100 of them relate to a specific RBS person selected in the RBSPerson table (e.g. Bob Smith) - the chart should have 100 rows if Bob Smith is selected.&lt;/LI&gt;&lt;LI&gt;Zero values must be included.&amp;nbsp; So following on from the previous example, of the 100 Coverage records relating to Bob Smith, let's say only 75 have any tranasactions associated to them.&amp;nbsp; So the 100 rows of the chart must show 75 rows with a +ve integer against them and 25 rows with a zero.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Up to now this isn't too difficult - I have used some Set Analysis (in conjunction with unchecking "Suppress zero values") which is working just fine:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #800080; font-size: 8pt;"&gt;&lt;STRONG style="color: #800080; font-size: 8pt;"&gt;&lt;STRONG style="color: #800080; font-size: 8pt;"&gt;&lt;STRONG style="color: #008000; font-size: 8pt;"&gt;&lt;STRONG style="color: #008000; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;NUM(SUM({1&amp;lt;%RBSPerson_ID=P(),%Client_ID=P(),%ClientContact_ID=P(),[Service offered/provided]=P() &amp;gt;}%Counter_Service),'#,##0')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER!&amp;nbsp; I need to add one other field back into the Set Analysis expression given above.&amp;nbsp; But this is from the FACT table - &lt;EM&gt;&lt;STRONG&gt;%ActivityTab&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp; What I am trying to acheive is to limit the SUM to only those FACT records where %ActivityTab = "Svc".&amp;nbsp; The problem is that this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;NUM(SUM({1&amp;lt;%RBSPerson_ID=P(),%Client_ID=P(),%ClientContact_ID=P(),[Service offered/provided]=P(), %ActivityTab={Svc} &amp;gt;}%Counter_Service),'#,##0')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;results in my zero values being excluded.&amp;nbsp; This is quite obvious I guess - there will only be a value for %ActivityTab where there is a FACT record.&amp;nbsp; But I need to retain the zeros!&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;So what I need to achieve is a results set where %ActivityTab is EITHER "Svc" OR Null; but Null based on the join, not a Null() value.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Phew!&amp;nbsp; Hope that's clear and one of you very clever folk can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2011 12:38:51 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2011-10-25T12:38:51Z</dc:date>
    <item>
      <title>Set Analysis to include Nulls by Join (not Nulls in same table)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-include-Nulls-by-Join-not-Nulls-in-same-table/m-p/273242#M102251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's one that I feel should be doable but I can't get it working!&amp;nbsp; Hoping you can help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my data model:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ResearchDashboard.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8114_ResearchDashboard.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,&amp;nbsp; I need a straight table chart that shows every record in the Coverage table, and a countof the associated records in the FACT table - from &lt;STRONG&gt;&lt;EM&gt;SUM(%Counter_Service)&lt;/EM&gt;&lt;/STRONG&gt; - with the following specific requirements:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;All records in the Coverage table must be shown, &lt;EM&gt;with all selections removed, &lt;SPAN style="text-decoration: underline;"&gt;except some specific fields&lt;/SPAN&gt;&lt;/EM&gt;.&amp;nbsp; E.g. let's say there are 1000 records in the coverage table, but only 100 of them relate to a specific RBS person selected in the RBSPerson table (e.g. Bob Smith) - the chart should have 100 rows if Bob Smith is selected.&lt;/LI&gt;&lt;LI&gt;Zero values must be included.&amp;nbsp; So following on from the previous example, of the 100 Coverage records relating to Bob Smith, let's say only 75 have any tranasactions associated to them.&amp;nbsp; So the 100 rows of the chart must show 75 rows with a +ve integer against them and 25 rows with a zero.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Up to now this isn't too difficult - I have used some Set Analysis (in conjunction with unchecking "Suppress zero values") which is working just fine:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #800080; font-size: 8pt;"&gt;&lt;STRONG style="color: #800080; font-size: 8pt;"&gt;&lt;STRONG style="color: #800080; font-size: 8pt;"&gt;&lt;STRONG style="color: #008000; font-size: 8pt;"&gt;&lt;STRONG style="color: #008000; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;NUM(SUM({1&amp;lt;%RBSPerson_ID=P(),%Client_ID=P(),%ClientContact_ID=P(),[Service offered/provided]=P() &amp;gt;}%Counter_Service),'#,##0')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER!&amp;nbsp; I need to add one other field back into the Set Analysis expression given above.&amp;nbsp; But this is from the FACT table - &lt;EM&gt;&lt;STRONG&gt;%ActivityTab&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp; What I am trying to acheive is to limit the SUM to only those FACT records where %ActivityTab = "Svc".&amp;nbsp; The problem is that this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;NUM(SUM({1&amp;lt;%RBSPerson_ID=P(),%Client_ID=P(),%ClientContact_ID=P(),[Service offered/provided]=P(), %ActivityTab={Svc} &amp;gt;}%Counter_Service),'#,##0')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;results in my zero values being excluded.&amp;nbsp; This is quite obvious I guess - there will only be a value for %ActivityTab where there is a FACT record.&amp;nbsp; But I need to retain the zeros!&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;So what I need to achieve is a results set where %ActivityTab is EITHER "Svc" OR Null; but Null based on the join, not a Null() value.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Phew!&amp;nbsp; Hope that's clear and one of you very clever folk can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 12:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-include-Nulls-by-Join-not-Nulls-in-same-table/m-p/273242#M102251</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-10-25T12:38:51Z</dc:date>
    </item>
  </channel>
</rss>

