<?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: NOT EXISTS Optimized Load Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168310#M912989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try converting both fields to numeric format or both to date format and compare. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 May 2016 10:46:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-30T10:46:40Z</dc:date>
    <item>
      <title>NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168307#M912986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to change some of our scripts to improve load performance and want to remove any data associated with the current day. I've changed to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vCutoff=floor(now());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CUTOFF:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;$(vCutoff) as KPI_Date&lt;/P&gt;&lt;P&gt;AutoGenerate 1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST:&lt;/P&gt;&lt;P&gt;LOAD KPI_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPI_Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[KPI_2016-05*.qvd]&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS (KPI_Date);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE CUTOFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The load is now optimised but it only reads one record from each qvd it's reading in, instead of the entire set of data. When I change to EXISTS it reads in everything from the input qvds related to today, which is what I would expect. Why is it not doing the same for the NOT EXISTS?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168307#M912986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168308#M912987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is KPI_Date also as floor(Date) stored? Have you the field KPI_Date already loaded before in any other load-statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 09:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168308#M912987</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-30T09:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168309#M912988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Marcus.&lt;/P&gt;&lt;P&gt;No, this is the entire script just to test the method will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 10:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168309#M912988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-30T10:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168310#M912989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try converting both fields to numeric format or both to date format and compare. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 10:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168310#M912989</guid>
      <dc:creator />
      <dc:date>2016-05-30T10:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168311#M912990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;CUTOFF:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #ff0000;"&gt;Today() as KPI_Date_Check&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;AutoGenerate 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;TEST:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD KPI_ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPI_Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;[KPI_2016-05*.qvd]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;(qvd)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE NOT EXISTS (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;KPI_Date_Check&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;Floor(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;KPI_Date)&lt;/SPAN&gt;);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DROP TABLE CUTOFF;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 10:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168311#M912990</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-30T10:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168312#M912991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general exists() and not exists() do work - if not then is anything with the included field(s) wrong. Therefore check the values and formats from this field and the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 11:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168312#M912991</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-30T11:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168313#M912992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;Unfortunately that doesn't give an optimized load as I believe the column names have to be identical for the optimization to work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 11:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168313#M912992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-30T11:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168314#M912993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus, I don't think this is the case as I've even tried with an integer format of the date (e.g. 20160530) so there can be no confusion with formats and I still get the same error. Also, the EXISTS works ok and picks all records that match from the correct date. Its just the NOT EXISTS that picks one record from each input date/file (the files are split by date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 12:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168314#M912993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-30T12:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168315#M912994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's true, I forgot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 12:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168315#M912994</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-30T12:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168316#M912995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kiru, please see the answer to Marcus above. The date format matches when performing an EXISTS, but when I change to NOT EXISTS it reads in one record from every file we read in, instead of every record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 12:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168316#M912995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-30T12:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168317#M912996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KPI_Date is also Number in KPI_2016-05*.qvd? if not first you need to make it in number, but here $(vCutoff) format should be same as KPI_Date in KPI_2016-05*.qvd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 12:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168317#M912996</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-30T12:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168318#M912997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kushal,&lt;/P&gt;&lt;P&gt;Please note the format is ok as when it is EXISTS it pulls through the correct data. Its only when changing to NOT EXISTS that it only pulls through one record from each date/file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 12:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168318#M912997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-30T12:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168319#M912998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing I could think of is that its connected to the autogenerate 1 which is why its picking 1 record from each file. However, I tried a load inline and had the same issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 12:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168319#M912998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-30T12:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168320#M912999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The load is now optimised but it only reads one record from each qvd it's reading in, instead of the entire set of data. When I change to EXISTS it reads in everything from the input qvds related to today, which is what I would expect. Why is it not doing the same for the NOT EXISTS?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's because Exists(FIELD) is comparing the input record value of FIELD with the available symbols of FIELD in the symbol table, which contain all FIELD values loaded so far, &lt;STRONG&gt;&lt;EM&gt;including the current LOAD statement.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could probably create the dates you want to load (all possible dates in the QVD except today()) and then just use a WHERE EXISTS(FIELD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and still keep the optimized LOAD, or go with Sunny's suggestion and do an un-optimized LOAD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 12:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168320#M912999</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-30T12:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168321#M913001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl, that makes perfect sense. I just need to find a way to load the previous dates that won't take longer than the potential savings of an optimised load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 13:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168321#M913001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-30T13:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168322#M913003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming your QVD contain KPI_Dates for May 2016 (just guessing from the file name), you could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DATESTOKEEP:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Makedate(2016, 5, Recno() ) as KPI_Date&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AutoGenerate Today() - Monthstart(Today() );&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You probably need to make this dynamic, basic idea is to not load all dates from source, but to generate the field values based on your &lt;EM&gt;expected&lt;/EM&gt; values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2016 16:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168322#M913003</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-30T16:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: NOT EXISTS Optimized Load Issue</title>
      <link>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168323#M913005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl,&lt;/P&gt;&lt;P&gt;What I did in the end was to use the IterNo function as follows. It makes it easy to change the range of dates I want to include:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;varMinDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('2016-05-01');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;varMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;());&lt;BR /&gt; &lt;BR /&gt; TempKPIDate:&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(varMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() - 1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;KPI_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AutoGenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;While&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(varMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() -1 &amp;lt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(varMaxDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 07:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/NOT-EXISTS-Optimized-Load-Issue/m-p/1168323#M913005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-31T07:55:35Z</dc:date>
    </item>
  </channel>
</rss>

