<?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 Re: Need a left join in set analysis please. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612281#M680900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*bump*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 09:57:51 GMT</pubDate>
    <dc:creator>wonkymeister</dc:creator>
    <dc:date>2014-03-25T09:57:51Z</dc:date>
    <item>
      <title>Need a left join in set analysis please.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612276#M680895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;I have 3 table all associated by a person id (SAP schema).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;These three tables all have start and end dates indicating whether a record is current or closed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;My main person table has 1000 records. My address table has 995 and my CRB has 25.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Using set analysis as such…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;( {$&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;PersonTable_StartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vNowdate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;}&lt;BR /&gt; , &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;PersonTable_EndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;$(vNowdate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;}&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: green;"&gt;// CRB Status&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt; , C&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;RB_BeginDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vNowdate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;}&lt;BR /&gt; , &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;CRB_EndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;$(vNowdate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;}&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: green;"&gt;// Address&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;, AddTable_BegDate = {"&amp;lt;=$(vNowdate)"}&lt;BR /&gt; , AddTable_EndDate = {"&amp;gt;$(vNowdate)"}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: maroon;"&gt;PersonId&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black;"&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Now &lt;/SPAN&gt;&lt;SPAN style="font-size: 19px;"&gt;ideally I&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; would have liked an open record in all of the tables and then this wouldn't present a problem. However, the CRB restriction before the Address restriction shows addresses of only those who have CRB records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Question is… how do I modify my set expression so I end up with Nulls in the results for CRB so I get all the Addresses and also all the people regardless of whether they have an address record.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 08:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612276#M680895</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-03-24T08:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need a left join in set analysis please.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612277#M680896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can nullify your field in your set analysis so that CRB restriction will no affect your desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 08:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612277#M680896</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-24T08:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need a left join in set analysis please.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612278#M680897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you expand please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 09:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612278#M680897</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-03-24T09:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need a left join in set analysis please.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612279#M680898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for late response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said You can Nullify fields, It means When You pass your set analysis&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;C&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;RB_BeginDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vNowdate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;CRB_EndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;$(vNowdate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Your &lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 16px;"&gt;PersonId&lt;/SPAN&gt; will counted which available between your date but if So that Other &lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 16px;"&gt;PersonId&lt;/SPAN&gt; will not be available for further query&lt;/P&gt;&lt;P&gt;but if You nullify that field value will available for further use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this will be wrong logic with respect to your expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of this if Separately evaluate&amp;nbsp; every expression you will get correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;( {$&amp;lt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;PersonTable_StartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vNowdate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;}&lt;BR /&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;PersonTable_EndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;$(vNowdate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;}&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;PersonId&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt; )&lt;/SPAN&gt;+&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: green;"&gt;// CRB Status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: green;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;C&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;RB_BeginDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vNowdate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;}&lt;BR /&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;CRB_EndDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;$(vNowdate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;}&lt;BR /&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;PersonId&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt; )&lt;/SPAN&gt;+&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: green;"&gt;// Address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: green;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;( {$&amp;lt; &lt;/SPAN&gt;AddTable_BegDate = {"&amp;lt;=$(vNowdate)"}&lt;BR /&gt;, AddTable_EndDate = {"&amp;gt;$(vNowdate)"}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: maroon;"&gt;PersonId&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Courier New'; color: black;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 09:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612279#M680898</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-24T09:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need a left join in set analysis please.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612280#M680899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, afraid that doesn't work as it acts as a sum (sums the two tables together so as the example below my total employee headcount becomes 1,254) and therefore inflates my numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the PersonTable is like the fact table, with the other tables such as CRB hanging off it. if PersonTable has 1000 employees then this needs to be the constant total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if 254 employees have CRB's:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with CRB: 254&lt;/P&gt;&lt;P&gt;Without CRB: 746&lt;/P&gt;&lt;P&gt;Total: 1,000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 10:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612280#M680899</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-03-24T10:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need a left join in set analysis please.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612281#M680900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*bump*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 09:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-left-join-in-set-analysis-please/m-p/612281#M680900</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-03-25T09:57:51Z</dc:date>
    </item>
  </channel>
</rss>

