<?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: Where Not Exists() question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists-question/m-p/1385602#M613677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution to me question from Stefan. @&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1204601"&gt;where not exists and only get one line&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Aug 2017 04:38:57 GMT</pubDate>
    <dc:creator>johngouws</dc:creator>
    <dc:date>2017-08-26T04:38:57Z</dc:date>
    <item>
      <title>Where Not Exists() question</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists-question/m-p/1385601#M613676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am busy with a Sales project where each day is defined by a Bus_Day_ID. Due to the way the data is uploaded and consolidated each day I am using a 'TakeOn' QVD and a 'Update' QVD. The 'Update' QVD will have &lt;SPAN style="font-size: 13.3333px;"&gt;Bus_Day_ID's overlapping with the &lt;SPAN style="font-size: 13.3333px;"&gt;'TakeOn' QVD. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What I am finding is that I am only returning the first record in the Where Not Exists function, unless I do a Group By. Is this correct or am I doing something wrong? I have triple checked and my 'overlapping' &lt;SPAN style="font-size: 13.3333px;"&gt;Bus_Day_ID '1401' has multiple records for the day, but without a group by, it only returns the first record. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I know I can use the Group By to get the correct answer, but I am wondering if there is a way of not using a Group By?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In advance I thank you for your input and advice. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;The below Load Scripts are what I am using. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/*Script I would like to use*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SALES:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Take on' as Source,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bus_Day_Id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;FROM SALES_TAKEON.qvd (qvd); &lt;/P&gt;&lt;P&gt;Concatenate &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Update' as Source,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bus_Day_Id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;FROM SALES_UPDATE.qvd (qvd)&lt;/P&gt;&lt;P&gt;Where NOT EXISTS(Bus_Day_Id);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/*Script with Group By and correct result*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SALES:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Take on' as Source,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bus_Day_Id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Sales) as Sales&lt;/P&gt;&lt;P&gt;FROM SALES_TAKEON.qvd (qvd)&lt;/P&gt;&lt;P&gt;Group By Bus_Day_Id; &lt;/P&gt;&lt;P&gt;Concatenate &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Update' as Source,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bus_Day_Id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Sales) as Sales&lt;/P&gt;&lt;P&gt;FROM SALES_UPDATE.qvd (qvd)&lt;/P&gt;&lt;P&gt;Where NOT EXISTS(Bus_Day_Id)&lt;/P&gt;&lt;P&gt;Group By Bus_Day_Id;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 03:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists-question/m-p/1385601#M613676</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2017-08-26T03:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists() question</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists-question/m-p/1385602#M613677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution to me question from Stefan. @&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1204601"&gt;where not exists and only get one line&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 04:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists-question/m-p/1385602#M613677</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2017-08-26T04:38:57Z</dc:date>
    </item>
  </channel>
</rss>

