<?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 differs.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618160#M227788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Match function will work. but actually i try to analyse the exists functionality..!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exists(field,exp) - will&amp;nbsp; that 'exp' evaluating only for the first time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 07:08:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-10T07:08:38Z</dc:date>
    <item>
      <title>Exists function differs..</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618158#M227786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Here is a sample script for exists function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;Load year,&lt;/P&gt;&lt;P&gt;Month,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(exists(Month,'jan'),1,0) as firstsale;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year, Month, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, jan, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, feb, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, mar, 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, jan, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, feb, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, mar, 30&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is giving 0 for the 'jan' month, but actually it has to return 'true which is 1 in my case. Can anyone tell why it is giving reverse?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 07:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618158#M227786</guid>
      <dc:creator />
      <dc:date>2014-03-10T07:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function differs..</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618159#M227787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably you need, Match().&amp;nbsp; Exists() is for something else. try like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Match(Month,'jan'),1,0) as firstsale;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 07:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618159#M227787</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-03-10T07:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function differs..</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618160#M227788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Match function will work. but actually i try to analyse the exists functionality..!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exists(field,exp) - will&amp;nbsp; that 'exp' evaluating only for the first time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 07:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618160#M227788</guid>
      <dc:creator />
      <dc:date>2014-03-10T07:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function differs..</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618161#M227789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really. Exists() - determines whether a specific field value exists in a specified field of the data loaded so far. That means, for first time 'jan' the fucntion retuurns FALSE because so far no 'jan' is loaded; once it is loaded, returns TRUE for all subsequent occurances of 'jan'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 07:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618161#M227789</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-03-10T07:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function differs..</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618162#M227790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exists will be check the current value previously loaded table field values, not within the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;MonthName&lt;/P&gt;&lt;P&gt;jan&lt;/P&gt;&lt;P&gt;mar];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, if(Exists(MonthName, Month), 1, 0) AS isExists INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year, Month, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, jan, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, feb, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, mar, 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, jan, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, feb, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, mar, 30&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OutPut:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year, Month, Sales, isExists&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, jan, 10, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, feb, 20, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012, mar, 30, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, jan, 10, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, feb, 20, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013, mar, 30, 1&lt;/P&gt;&lt;P&gt;It is 1 for Jan and Mar only&lt;/P&gt;&lt;P&gt;Here exists checks the Month field in current table and checks with the MonthName field values for match. &lt;/P&gt;&lt;P&gt;MonthName is a field which is already loaded in to the memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 07:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618162#M227790</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-03-10T07:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function differs..</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618163#M227791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you...I got it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 07:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618163#M227791</guid>
      <dc:creator />
      <dc:date>2014-03-10T07:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exists function differs..</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618164#M227792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exists function can fetch the values with in the &lt;STRONG&gt;same table&lt;/STRONG&gt;. We can use "where not exists" for fetching "distinct" rows in the same table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 21:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-function-differs/m-p/618164#M227792</guid>
      <dc:creator />
      <dc:date>2014-03-10T21:06:27Z</dc:date>
    </item>
  </channel>
</rss>

