<?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 function choking... ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387832#M144698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, SliceFileName is really a field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, putting the field name in single quotes worked. But that is NOT how the documentation specifies the Exists function should be used! (Page 326, QV11 SR1 documentation PDF)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView really makes me want to SCREAM sometimes! C'mon guys, your reference manual really needs to be correct!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="page" title="Page 326"&gt;&lt;/P&gt;&lt;DIV class="column"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.000000pt; font-family: 'CourierNewPS'; font-weight: bold; background-color: rgb(82.745000%, 82.745000%, 82.745000%);"&gt;exists(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.000000pt; font-family: 'CourierNewPS'; font-style: italic; background-color: rgb(82.745000%, 82.745000%, 82.745000%);"&gt;field [ , expression ] &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.000000pt; font-family: 'CourierNewPS'; font-weight: bold; background-color: rgb(82.745000%, 82.745000%, 82.745000%);"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;Determines whether a specific field value exists in a specified field of the data loaded so far. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPS'; font-style: italic;"&gt;Field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&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;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPS'; font-style: italic;"&gt;Expr &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;is an expression evaluating to the field value to look for in the specified field. If omitted, the current record’s value in the specified field will be assumed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.000000pt; font-family: 'TimesNewRomanPS'; font-weight: bold;"&gt;Examples: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'CourierNewPSMT';"&gt;exists(Month, 'Jan') &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;returns -1 (true) if the field value &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPS'; font-style: italic;"&gt;'Jan' &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;is found in the current content of the field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPS'; font-style: italic;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'CourierNewPSMT';"&gt;exists(IDnr, IDnr) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;returns -1 (true) if the value of the field IDnr in the current record already exists in any previously read record containing that field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'CourierNewPSMT';"&gt;exists (IDnr) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;is identical to the previous example. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'CourierNewPSMT';"&gt;Load Employee, ID, Salary from Employees.csv;&lt;BR /&gt; Load FirstName&amp;amp; ' ' &amp;amp;LastName as Employee, Comment from Citizens.csv where exists (Employee, FirstName&amp;amp; ' ' &amp;amp;LastName);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;Only comments regarding those citizens who are employees are read.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'CourierNewPSMT';"&gt;Load A, B, C, from Employees.csv where not exists (A);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;This is equivalent to performing a distinct load on field A. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 21:59:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-04-22T21:59:28Z</dc:date>
    <item>
      <title>Exists function choking... ?</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387827#M144693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having an issue with the Exists function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my load script, I'm trying to check to see if I've already processed a particular QVD file by comparing the filename with a filename field in a previously loaded table. However, Exists() is causing the script to exit with no error thrown, and nothing but a "general script error" in the logfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've boiled it down to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vFileExistence = Exists(SliceFileName,'$(vFileShortName)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the debug window, this correctly expands to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vFileExistence = Exists(SliceFileName,'DataSlice00001.qvd')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(No semicolon shown in the debug window, but it is there in the code.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SliceFileName field does exist, and I've got DataSlice00001.qvd loaded in it via an inline load. But, the debug window shows vFileExistence &amp;lt;NULL&amp;gt; in red, and SliceFileName &amp;lt;NULL&amp;gt; in green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 21:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387827#M144693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-22T21:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function choking... ?</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387828#M144694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a very simple qvw example that exhibits the problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 21:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387828#M144694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-22T21:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function choking... ?</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387829#M144695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is SliceFileName really &lt;EM style="text-decoration: underline;"&gt;&lt;STRONG&gt;a field&lt;/STRONG&gt;&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, you should try with single quotes around it. Otherwise QlikView will assume that it is a variable. See more on &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/09/quoteology"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/09/quoteology&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 21:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387829#M144695</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-04-22T21:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function choking... ?</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387830#M144696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;assuming that SliceFileName is a valid field name in your script, enclose it within single quotes so that your statement looks like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Let vFileExistence = Exists('SliceFileName','$(vFileShortName)');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 21:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387830#M144696</guid>
      <dc:creator />
      <dc:date>2013-04-22T21:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function choking... ?</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387831#M144697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check THIS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAY be you problem is: WHERE are you READING the QVD?&amp;nbsp;&amp;nbsp; Validate the Path where the "Exist" Variable that you are reading:&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;I had&amp;nbsp; a problem because i was executing mi QVD with the Variable &lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;ExisteQVD &lt;/EM&gt;&lt;/STRONG&gt;and won't show Nothing because the path of the variable went to other place to find the QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; //=============== Cuenta los registros del archivo QVD en caso de existir&amp;nbsp; =====================/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;ExisteQVD&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;QvdNoOfRecords&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ('Dimensiones\ORDENES_PXS_TULSA_HIST.qvd');&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Si regresa -1 es que ExisteQVD es nulo y significa que el archivo QVD no se encuentra&lt;BR /&gt;&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;ExisteQVD&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;IsNull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ExisteQVD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;IF&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ExisteQVD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = -1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Store&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; ordenes_pxs &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Into&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Dimensiones\ORDENES_PXS_TULSA_HIST.qvd;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Drop&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ordenes_pxs;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;ELSE&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(ordenes_pxs)&lt;BR /&gt;&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; &lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;order_pxs&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;serie_pxs&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;project_px...&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 21:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387831#M144697</guid>
      <dc:creator />
      <dc:date>2013-04-22T21:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function choking... ?</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387832#M144698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, SliceFileName is really a field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, putting the field name in single quotes worked. But that is NOT how the documentation specifies the Exists function should be used! (Page 326, QV11 SR1 documentation PDF)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView really makes me want to SCREAM sometimes! C'mon guys, your reference manual really needs to be correct!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="page" title="Page 326"&gt;&lt;/P&gt;&lt;DIV class="column"&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.000000pt; font-family: 'CourierNewPS'; font-weight: bold; background-color: rgb(82.745000%, 82.745000%, 82.745000%);"&gt;exists(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.000000pt; font-family: 'CourierNewPS'; font-style: italic; background-color: rgb(82.745000%, 82.745000%, 82.745000%);"&gt;field [ , expression ] &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.000000pt; font-family: 'CourierNewPS'; font-weight: bold; background-color: rgb(82.745000%, 82.745000%, 82.745000%);"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;Determines whether a specific field value exists in a specified field of the data loaded so far. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPS'; font-style: italic;"&gt;Field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&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;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPS'; font-style: italic;"&gt;Expr &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;is an expression evaluating to the field value to look for in the specified field. If omitted, the current record’s value in the specified field will be assumed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.000000pt; font-family: 'TimesNewRomanPS'; font-weight: bold;"&gt;Examples: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'CourierNewPSMT';"&gt;exists(Month, 'Jan') &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;returns -1 (true) if the field value &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPS'; font-style: italic;"&gt;'Jan' &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;is found in the current content of the field &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPS'; font-style: italic;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'CourierNewPSMT';"&gt;exists(IDnr, IDnr) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;returns -1 (true) if the value of the field IDnr in the current record already exists in any previously read record containing that field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'CourierNewPSMT';"&gt;exists (IDnr) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;is identical to the previous example. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'CourierNewPSMT';"&gt;Load Employee, ID, Salary from Employees.csv;&lt;BR /&gt; Load FirstName&amp;amp; ' ' &amp;amp;LastName as Employee, Comment from Citizens.csv where exists (Employee, FirstName&amp;amp; ' ' &amp;amp;LastName);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;Only comments regarding those citizens who are employees are read.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'CourierNewPSMT';"&gt;Load A, B, C, from Employees.csv where not exists (A);&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.000000pt; font-family: 'TimesNewRomanPSMT';"&gt;This is equivalent to performing a distinct load on field A. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 21:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387832#M144698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-22T21:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function choking... ?</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387833#M144699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see that the documentation contradicts the behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's rather a question about how to quote things in QlikView: Unquoted strings (and references with double quotes or square brackets) are treated differently inside a Load compared to outside a Load. &lt;SPAN style="font-size: 10pt;"&gt;Inside a Load it is always a &lt;STRONG&gt;&lt;EM&gt;field &lt;/EM&gt;&lt;/STRONG&gt;reference; Ouside it is always a &lt;STRONG&gt;&lt;EM&gt;variable &lt;/EM&gt;&lt;/STRONG&gt;reference. And as I see it, it cannot be different. As a consequence, single quotes must be used for field references outside a load.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a problem for the exists() function only. This is true for &lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;all&lt;/EM&gt;&lt;/STRONG&gt; functions. I agree that the documentation could be clearer on which quotes to use though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 08:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-choking/m-p/387833#M144699</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-04-23T08:31:51Z</dc:date>
    </item>
  </channel>
</rss>

