<?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() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311329#M1250072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that, but 'Jan' is also not a previously loaded value, it is a string. i guess it is just a VERY BAD and WRONG example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jul 2017 17:49:27 GMT</pubDate>
    <dc:creator>olivetwist</dc:creator>
    <dc:date>2017-07-14T17:49:27Z</dc:date>
    <item>
      <title>Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311325#M1250059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to improve load times and have been updating code to allow for efficiency. one of the changes i was making is in regards to the Exists() function. my current script looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15000531941721906" jivemacro_uid="_15000531941721906" modifiedtitle="true"&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; test_ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; test_ACTIVITY_TS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; test_ACTIVITY_TYP_CD&lt;/P&gt;
&lt;P&gt;FROM $(WorkflowPath)\test.QVD (qvd)&lt;/P&gt;
&lt;P&gt;where test_SYSTEM_CD &amp;lt;&amp;gt; 'CWF';&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this works, but when I change "&lt;SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;where test_SYSTEM_CD &amp;lt;&amp;gt; 'CWF';" &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;to "&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;where not exists(test_SYSTEM_CD,'CWF');" &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;it returns 0 results. this would probably only save me a few seconds, but i am more interested in why this wouldn't work. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;Thanks in advance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311325#M1250059</guid>
      <dc:creator>olivetwist</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311326#M1250062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to refer to an already loaded field.&amp;nbsp; And the field has to be in your load script too.&amp;nbsp; You can refer to a value like this to do it this way I would do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filter:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; test_SYSTEM_CD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CWF&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;test_ID,&lt;/P&gt;&lt;P&gt;test_ACTIVITY_TS,&lt;/P&gt;&lt;P&gt;test_ACTIVITY_TYP_CD,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;test_SYSTEM_CD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From YourQVD (qvd)&lt;/P&gt;&lt;P&gt;where not exists(&lt;SPAN style="font-size: 13.3333px;"&gt;test_SYSTEM_CD);&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;Drop table Filter;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311326#M1250062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T17:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311327#M1250066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that is true, then why does Qlikview help say this:&lt;/P&gt;&lt;P&gt;"&lt;SPAN class="Code"&gt;exists(Month, 'Jan')&lt;/SPAN&gt; returns -1 (true) if the field value &lt;SPAN class="Italic"&gt;'Jan'&lt;/SPAN&gt; is found in the current content of the field &lt;SPAN class="Italic"&gt;Month&lt;/SPAN&gt;. "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311327#M1250066</guid>
      <dc:creator>olivetwist</dc:creator>
      <dc:date>2017-07-14T17:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311328#M1250070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also says in the first line:&lt;/P&gt;&lt;P&gt;"These functions are used when a value from &lt;STRONG&gt;previously loaded records&lt;/STRONG&gt; of data is needed for the evaluation of the current record. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way you have it, it is not previously loaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311328#M1250070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T17:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311329#M1250072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that, but 'Jan' is also not a previously loaded value, it is a string. i guess it is just a VERY BAD and WRONG example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311329#M1250072</guid>
      <dc:creator>olivetwist</dc:creator>
      <dc:date>2017-07-14T17:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311330#M1250074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't necessarily disagree.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Glad you got it working though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311330#M1250074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T17:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311331#M1250076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By that example, you could try below, but I don't know if it would work or if it would still be an optimized load.&amp;nbsp; If you do try it and it works let me know.&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;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;test_ID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;test_ACTIVITY_TS,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;test_ACTIVITY_TYP_CD,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;test_SYSTEM_CD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From YourQVD (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where not exists(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;test_SYSTEM_CD,'CWF');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311331#M1250076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T17:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311332#M1250077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is exactly what i was trying in my orig example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;ok, not EXACTLY, i didnt include the test_SYSTEM_CD field in the load of my example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311332#M1250077</guid>
      <dc:creator>olivetwist</dc:creator>
      <dc:date>2017-07-14T17:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311333#M1250078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your original example didn't have &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;test_SYSTEM_CD in your load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;You didn't have the &lt;STRONG&gt;bolded&lt;/STRONG&gt; part below.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&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;test_ID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;test_ACTIVITY_TS,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;test_ACTIVITY_TYP_CD,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;test_SYSTEM_CD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From YourQVD (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where not exists(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;test_SYSTEM_CD,'CWF');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311333#M1250078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T17:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311334#M1250079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just as an FYI, it does work with a string like 'CWF' as long as the field is included in the load statement. With other functions and fields used in the where statement you don't need to include it so I wasn't expecting it to be any different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 19:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311334#M1250079</guid>
      <dc:creator>olivetwist</dc:creator>
      <dc:date>2017-07-14T19:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311335#M1250080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;Was the load still optimized that way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 19:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311335#M1250080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-14T19:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Where Not Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311336#M1250081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it was. shaved 1.5 min. every little bit helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 19:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Not-Exists/m-p/1311336#M1250081</guid>
      <dc:creator>olivetwist</dc:creator>
      <dc:date>2017-07-14T19:33:06Z</dc:date>
    </item>
  </channel>
</rss>

