<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exists/m-p/580204#M215596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function is used when a value from previously loaded records of data is needed for the evaluation of the current record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor45"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;Exists(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;field [ , expression ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Determines whether a specific field value exists in a specified field of the data loaded so far. &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;SPAN class="Italic"&gt;Expr&lt;/SPAN&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;/P&gt;&lt;P class="example"&gt;Examples:&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;P&gt;&lt;SPAN class="Code"&gt;exists(IDnr, IDnr)&lt;/SPAN&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;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;exists (IDnr)&lt;/SPAN&gt; is identical to the previous example. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load Employee, ID, Salary from Employees.csv; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Code"&gt;Load FirstName&amp;amp; ' ' &amp;amp;LastName as Employee, Comment from Citizens.csv where exists (Employee, FirstName&amp;amp; ' ' &amp;amp;LastName);&lt;/SPAN&gt; &lt;BR /&gt;Only comments regarding those citizens who are employees are read. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load A, B, C, from Employees.csv where not exists (A);&lt;/SPAN&gt; &lt;BR /&gt;This is equivalent to performing a distinct load on field A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 07:20:59 GMT</pubDate>
    <dc:creator>nilesh_gangurde</dc:creator>
    <dc:date>2014-01-29T07:20:59Z</dc:date>
    <item>
      <title>Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/580203#M215595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could some one help me to know &lt;/P&gt;&lt;P&gt;use of Exists function and where can we implements &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;Niranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 07:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/580203#M215595</guid>
      <dc:creator>NavinReddy</dc:creator>
      <dc:date>2014-01-29T07:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/580204#M215596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function is used when a value from previously loaded records of data is needed for the evaluation of the current record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor45"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;Exists(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;field [ , expression ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Determines whether a specific field value exists in a specified field of the data loaded so far. &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;SPAN class="Italic"&gt;Expr&lt;/SPAN&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;/P&gt;&lt;P class="example"&gt;Examples:&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;P&gt;&lt;SPAN class="Code"&gt;exists(IDnr, IDnr)&lt;/SPAN&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;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;exists (IDnr)&lt;/SPAN&gt; is identical to the previous example. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load Employee, ID, Salary from Employees.csv; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Code"&gt;Load FirstName&amp;amp; ' ' &amp;amp;LastName as Employee, Comment from Citizens.csv where exists (Employee, FirstName&amp;amp; ' ' &amp;amp;LastName);&lt;/SPAN&gt; &lt;BR /&gt;Only comments regarding those citizens who are employees are read. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load A, B, C, from Employees.csv where not exists (A);&lt;/SPAN&gt; &lt;BR /&gt;This is equivalent to performing a distinct load on field A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 07:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/580204#M215596</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2014-01-29T07:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/580205#M215597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one take from help file&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P class="syntax"&gt;&lt;A name="kanchor46"&gt;&lt;/A&gt;&lt;A name="exists"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;exists(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;field [ , expression ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;
&lt;P&gt;Determines whether a specific field value exists in a specified field of the data loaded so far. &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;SPAN class="Italic"&gt;Expr&lt;/SPAN&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;/P&gt;
&lt;P class="example"&gt;Examples:&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;P&gt;&lt;SPAN class="Code"&gt;exists(IDnr, IDnr)&lt;/SPAN&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;/P&gt;
&lt;P&gt;&lt;SPAN class="Code"&gt;exists (IDnr)&lt;/SPAN&gt; is identical to the previous example. &lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Code"&gt;Load Employee, ID, Salary from Employees.csv; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Code"&gt;Load FirstName&amp;amp; ' ' &amp;amp;LastName as Employee, Comment from Citizens.csv where exists (Employee, FirstName&amp;amp; ' ' &amp;amp;LastName);&lt;/SPAN&gt; &lt;BR /&gt;Only comments regarding those citizens who are employees are read. &lt;/P&gt;
&lt;P&gt;&lt;SPAN class="Code"&gt;Load A, B, C, from Employees.csv where not exists (A);&lt;/SPAN&gt; &lt;BR /&gt;This is equivalent to performing a distinct load on field A. &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here is example:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13909801419519187" jivemacro_uid="_13909801419519187"&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; A, 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D, 4];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Table2&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F3, F4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, AA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, BB&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, CC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E, EE];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Qualify *;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Table3:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;
&lt;P&gt;RESIDENT Table2 WHERE Not Exists(F1, F3);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Result after load in Table3&lt;/P&gt;&lt;P&gt;F3,F4&lt;/P&gt;&lt;P&gt;E,EE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 07:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/580205#M215597</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2014-01-29T07:23:58Z</dc:date>
    </item>
  </channel>
</rss>

