<?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: EXISTS() - BUG or WAD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465176#M695440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think bloe might do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE1: &lt;/P&gt;&lt;P&gt;LOAD F1, F2&lt;/P&gt;&lt;P&gt; INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD F1, F2&lt;/P&gt;&lt;P&gt; INLINE [ &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, e&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, f &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, g ]&lt;/P&gt;&lt;P&gt; where ISNULL (Lookup ('F2', 'F1', F1, 'TABLE1'));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 08:15:44 GMT</pubDate>
    <dc:creator>devans_1</dc:creator>
    <dc:date>2013-05-16T08:15:44Z</dc:date>
    <item>
      <title>EXISTS() - BUG or WAD</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465171#M695435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you run the following script:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13686879256657162" jivemacro_uid="_13686879256657162"&gt;&lt;P&gt;TABLE1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, e&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;WHERE NOT Exists(F1)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt; the last line from second table (4, e) will not be loaded despite the fact that 4 does not exists in TABLE1. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;What do you think, is it a BUG or WAD (Work as Designed)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;I say it's a bug.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 07:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465171#M695435</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2013-05-16T07:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: EXISTS() - BUG or WAD</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465172#M695436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WAD, because at the moment you load the last line from second table, the first line is already part of your data model, so F1 value 4 exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rename F1 in your first load and use exists with two parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code jive-sql"&gt;TABLE1:&lt;BR /&gt;LOAD F1 as F11, F2 INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;LOAD F1 as F11, F2 INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, d&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, e&lt;BR /&gt;]&lt;BR /&gt;&lt;SPAN class="jive-sql-keyword"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN class="jive-sql-keyword"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="jive-sql-keyword"&gt;Exists&lt;/SPAN&gt;(F11, F1)&lt;BR /&gt;;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 07:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465172#M695436</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-16T07:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: EXISTS() - BUG or WAD</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465173#M695437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your input. I would like to discuss the behaviour, not the workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it should behave like this because it's not natural/intuitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Load &lt;STRONG&gt;all&lt;/STRONG&gt; the rows from TABLE2 into TABLE1 where values from F1 are missing"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...I don't expect to load only the first row for each missing value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 07:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465173#M695437</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2013-05-16T07:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: EXISTS() - BUG or WAD</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465174#M695438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The where clause is executed per input record. As the last record comes in, the condition is false.&lt;/P&gt;&lt;P&gt;WAD, even / though it may contradict your personal user expectation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 07:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465174#M695438</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-16T07:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: EXISTS() - BUG or WAD</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465175#M695439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 07:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465175#M695439</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2013-05-16T07:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: EXISTS() - BUG or WAD</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465176#M695440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think bloe might do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE1: &lt;/P&gt;&lt;P&gt;LOAD F1, F2&lt;/P&gt;&lt;P&gt; INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD F1, F2&lt;/P&gt;&lt;P&gt; INLINE [ &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, e&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, f &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, g ]&lt;/P&gt;&lt;P&gt; where ISNULL (Lookup ('F2', 'F1', F1, 'TABLE1'));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 08:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465176#M695440</guid>
      <dc:creator>devans_1</dc:creator>
      <dc:date>2013-05-16T08:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: EXISTS() - BUG or WAD</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465177#M695441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lucian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;SPAN style="text-decoration: underline;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/swuehl" id="jive-1582322072791889128271"&gt;swuehl&lt;/A&gt;/&lt;/SPAN&gt;Stefan always has a point..whatever he says is authority for me....and I'm sure is authority for every community member&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;/P&gt;&lt;P&gt;As you've said:&lt;EM&gt;"&lt;/EM&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;the last line from second table (4, e) will not be loaded despite the fact that &lt;STRONG&gt;4 does not exists in TABLE1&lt;/STRONG&gt;"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;from QV help:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Bold"&gt;"exists &lt;/SPAN&gt;Determines whether a specific &lt;STRONG&gt;field value exists in a specified field of the data loaded so far&lt;/STRONG&gt;. &lt;SPAN class="Italic"&gt;Field&lt;/SPAN&gt; is a name or a string expression evaluating to a field name. The field must exist in the data loaded so far by the script"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;field value exists in a specified field: &lt;/STRONG&gt;&lt;/EM&gt;so it is not about a previous table but the field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data loaded so far:&lt;/STRONG&gt; 4 has been already been loaded in F1 when the turn for (4,e) comes to be loaded, so it is not loaded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,it might fit in the category AI(Against Intution) but as per the categories suggested by you, it is WAD hence you can't compare it with intution as then you'll have 3 categories:&lt;/P&gt;&lt;P&gt;BUG,WAD, AI(Against Intuition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 08:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-BUG-or-WAD/m-p/465177#M695441</guid>
      <dc:creator />
      <dc:date>2013-05-16T08:53:08Z</dc:date>
    </item>
  </channel>
</rss>

