<?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 AW:Re: AW:Re: AW:Exists() behaves differently in select vs where clause?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171466#M41458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but you have to give the field name as string to the "function".&lt;/P&gt;&lt;P&gt;Regards Alex:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2009 23:41:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-01T23:41:12Z</dc:date>
    <item>
      <title>Exists() behaves differently in select vs where clause??</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171461#M41453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to use "where not exists(a,b)" to load data from a table to retrieve data which (surprise surprise) exists in the first table but not the other.&lt;/P&gt;&lt;P&gt;The columns I am comparing on are keys generated by autoid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;I&gt;RawInv:&lt;/I&gt;&lt;BR /&gt;&lt;B&gt;LOAD&lt;/B&gt;&lt;BR /&gt;RawInvDistiName &lt;B&gt;as&lt;/B&gt; InvDistiName,&lt;BR /&gt;date(RawInvReportDate, 'DD/MM/YYYY') &lt;B&gt;as&lt;/B&gt; RawInvReportDate,&lt;BR /&gt;RawInvQuantity,&lt;BR /&gt;RawInvProductCode,&lt;BR /&gt;RawInvEanCode,&lt;BR /&gt;RawInvEnteredDate,&lt;BR /&gt;autonumber(RawInvDistiName&amp;amp;RawInvProductCode&amp;amp;date(RawInvReportDate, 'DD/MM/YYYY')&amp;amp;RawInvQuantity) &lt;B&gt;as&lt;/B&gt; RawInvUniqueId&lt;BR /&gt;&lt;B&gt;FROM&lt;/B&gt; [..\Qvd\RawInventory.qvd] (qvd);&lt;BR /&gt;&lt;I&gt;ExcelTableInv:&lt;/I&gt;&lt;BR /&gt;&lt;B&gt;noconcatenate&lt;/B&gt; &lt;B&gt;load&lt;/B&gt;&lt;BR /&gt;DistiName &lt;B&gt;as&lt;/B&gt; InvDistiName,&lt;BR /&gt;date(InventoryDate, 'DD/MM/YYYY') &lt;B&gt;as&lt;/B&gt; ExcelInvReportDate,&lt;BR /&gt;ProductCode &lt;B&gt;as&lt;/B&gt; ExcelInvProductCode,&lt;BR /&gt;StockQuantity &lt;B&gt;as&lt;/B&gt; ExcelInvQuantity,&lt;BR /&gt;autonumber(DistiName&amp;amp;ProductCode&amp;amp;date(InventoryDate, 'DD/MM/YYYY')&amp;amp;StockQuantity) &lt;B&gt;as&lt;/B&gt; ExcelInvUniqueId;&lt;BR /&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; DistiName,&lt;BR /&gt;InventoryDate,&lt;BR /&gt;ProductCode,&lt;BR /&gt;StockQuantity&lt;BR /&gt;&lt;B&gt;FROM&lt;/B&gt; QV_ExcelReportInvAll;&lt;BR /&gt;&lt;I&gt;MissingInExcelInv:&lt;/I&gt;&lt;BR /&gt;&lt;B&gt;noconcatenate&lt;/B&gt; &lt;B&gt;LOAD&lt;/B&gt;&lt;BR /&gt;InvDistiName,&lt;BR /&gt;RawInvReportDate ,&lt;BR /&gt;RawInvQuantity ,&lt;BR /&gt;RawInvProductCode ,&lt;BR /&gt;RawInvEanCode ,&lt;BR /&gt;RawInvEnteredDate ,&lt;BR /&gt;RawInvUniqueId ,&lt;BR /&gt;if(exists(ExcelInvUniqueId, RawInvUniqueId), 'data matches', 'the uniqueid does not exist in excel') &lt;B&gt;as&lt;/B&gt; check&lt;BR /&gt;&lt;B&gt;resident&lt;/B&gt; RawInv&lt;BR /&gt;&lt;B&gt;where&lt;/B&gt; &lt;B&gt;not&lt;/B&gt; exists(ExcelInvUniqueId, RawInvUniqueId) ;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Basically, the problem is that I know that the data in the two top tables matches.&lt;/P&gt;&lt;P&gt;If i remove the where clause in the last select, i get 'data matches' in the check value to confirm.&lt;/P&gt;&lt;P&gt;But somehow the where does not seem to work correctly and displays all the data as not existing.&lt;/P&gt;&lt;P&gt;What am I getting wrong here?&lt;/P&gt;&lt;P&gt;thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 22:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171461#M41453</guid>
      <dc:creator />
      <dc:date>2009-12-01T22:15:48Z</dc:date>
    </item>
    <item>
      <title>AW:Exists() behaves differently in select vs where clause??</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171462#M41454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the first Field Name has to stand in qotes ''. Thats the reference field the second one stand for the Values in the loaded table.&lt;/P&gt;&lt;P&gt;I'm afraid thats wrong in the QlikView-Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have Fun with QV&lt;/P&gt;&lt;P&gt;Alex:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 23:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171462#M41454</guid>
      <dc:creator />
      <dc:date>2009-12-01T23:06:07Z</dc:date>
    </item>
    <item>
      <title>AW:Exists() behaves differently in select vs where clause??</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171463#M41455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex, thanks for your reply.&lt;/P&gt;&lt;P&gt;I tried double quotes, but still no joy. I get the same result. The exists condition works fine in the select statement without quotes anyway. Seems rather strange...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 23:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171463#M41455</guid>
      <dc:creator />
      <dc:date>2009-12-01T23:19:52Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Exists() behaves differently in select vs where clause??</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171464#M41456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try single quotes, sorry.&lt;/P&gt;&lt;P&gt;Alex:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 23:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171464#M41456</guid>
      <dc:creator />
      <dc:date>2009-12-01T23:23:00Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Exists() behaves differently in select vs where clause??</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171465#M41457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont single quotes make it a string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 23:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171465#M41457</guid>
      <dc:creator />
      <dc:date>2009-12-01T23:27:43Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Exists() behaves differently in select vs where clause??</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171466#M41458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but you have to give the field name as string to the "function".&lt;/P&gt;&lt;P&gt;Regards Alex:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 23:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171466#M41458</guid>
      <dc:creator />
      <dc:date>2009-12-01T23:41:12Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Exists() behaves differently in select vs where clause??</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171467#M41459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OKay, that might explain a few things! I'll try this tomorrow, thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 00:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171467#M41459</guid>
      <dc:creator />
      <dc:date>2009-12-02T00:56:43Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Exists() behaves differently in select vs where clause??</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171468#M41460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, that worked. Thanks! Strange that it would work in the select but not in the where. I couldnt figure out what was going on!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 17:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-behaves-differently-in-select-vs-where-clause/m-p/171468#M41460</guid>
      <dc:creator />
      <dc:date>2009-12-02T17:44:53Z</dc:date>
    </item>
  </channel>
</rss>

