<?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/969918#M978206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand what you are trying to achieve.&lt;/P&gt;&lt;P&gt;Just note that using WHERE EXISTS() should keep your LOAD optimized (unless you unoptimize by some other actions, like calculated fields), and that EXISTS() will check for existence of field values loaded &lt;EM&gt;so fa&lt;/EM&gt;r (i.e. in previous LOAD statements and in the current LOAD up to the current record).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the EXISTS() function with two arguments as shown above to decouple your loaded field from the field you check the values in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 09:56:54 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-08-21T09:56:54Z</dc:date>
    <item>
      <title>Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969898#M978182</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;1. QVD has Country field.&lt;/P&gt;&lt;P&gt;2. Country field has values respectively USA, INDIA, JAPAN. &lt;/P&gt;&lt;P&gt;3. I want to extract only USA data by optimized way.&lt;/P&gt;&lt;P&gt;I mean using of where exists(). (Not to use where country = 'USA').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Country:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Country&amp;nbsp;&amp;nbsp; -- it has all countries&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From Country.Qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;USA:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Country --- expecting here only USA&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Country&lt;/SPAN&gt;.qvd where exist ............&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nihhal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969898#M978182</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-08-21T08:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969899#M978183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FILTER:&lt;/P&gt;&lt;P&gt;LOAD Country INLINE [&lt;/P&gt;&lt;P&gt;Country&lt;/P&gt;&lt;P&gt;USA&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * FROM QVD.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE EXISTS(Country);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE FILTER;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969899#M978183</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-21T08:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969900#M978184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nihhal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Country &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;USA];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM Datasource&lt;/P&gt;&lt;P&gt;WHERE Exists(Country);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can try Keep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Temp:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;*&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;INLINE [&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Country &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;USA];&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Left Keep(Temp)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;*&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM Datasource;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DROP TABLE Temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969900#M978184</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-21T08:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969901#M978185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Temp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Country&lt;/P&gt;&lt;P&gt;&amp;nbsp; USA&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * From QVDName&lt;/P&gt;&lt;P&gt;Where Exists (Country);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969901#M978185</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-08-21T08:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969902#M978187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi Nihhal,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If the exist() doesn't work using the same field name (Country) as in your datasource then try the following code in your script:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TempTable:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CountryTemp&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;USA&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YourTable:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * FROM YourDataSource.qvd (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE EXISTS(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CountryTemp,Country&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP TABLE &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TempTable&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Alvaro P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969902#M978187</guid>
      <dc:creator>Alvaro_Palacios</dc:creator>
      <dc:date>2015-08-21T08:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969903#M978191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;First requirement - have to do optimized way if i use keep it should be non-optimized.&lt;/P&gt;&lt;P&gt;QVW has QVD with all countries data please see below sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Country&amp;nbsp;&amp;nbsp; -- it has all countries&lt;/P&gt;&lt;P&gt;From Country.Qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USA:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Country --- expecting here only USA&lt;/P&gt;&lt;P&gt;From Country.qvd where exist ............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nihhal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969903#M978191</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-08-21T08:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969904#M978192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Country:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Country&lt;/P&gt;&lt;P&gt;US ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Where Exists(Country);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isnull(Grade),0,Grade) as Grade,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Sample.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969904#M978192</guid>
      <dc:creator>jsingh71</dc:creator>
      <dc:date>2015-08-21T08:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969905#M978193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your code, small change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose your TEMP table has many countries. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969905#M978193</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-08-21T08:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969906#M978194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my scenario Country has USA, INDIA, JAPAN. However u have taken only USA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969906#M978194</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-08-21T08:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969907#M978195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In my scenario Country has USA, INDIA, JAPAN. However u have taken only USA&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969907#M978195</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-08-21T08:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969908#M978196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wasn't this your requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your original post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I want to extract only USA data by optimized way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 08:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969908#M978196</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-21T08:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969909#M978197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nihhal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have only those three countries, you can use the same code above for each country. E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;USA:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * FROM YourDataSource.qvd (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE EXISTS(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Country,'USA'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;India:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * FROM YourDataSource.qvd (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE EXISTS(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Country,'INDIA'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Japan:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * FROM YourDataSource.qvd (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE EXISTS(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Country,'JAPAN'&lt;/SPAN&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969909#M978197</guid>
      <dc:creator>Alvaro_Palacios</dc:creator>
      <dc:date>2015-08-21T09:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969910#M978198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country filed has USA, INDIA, JAPAN. However you have taken only USA. First I have to take QVD with all countries and second i have to take only USA by using of exists(). Please see my original post i added sample code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969910#M978198</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-08-21T09:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969911#M978199</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;If you want multiple countries then use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Temp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Country&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;USA&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;INDIA&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;JAPAN];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Datasource&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE Exists(Country);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;DROP TABLE Temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969911#M978199</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-21T09:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969912#M978200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Countries:&lt;/P&gt;&lt;P&gt;LOAD Country INLINE [&lt;/P&gt;&lt;P&gt;Country&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;USA&lt;/P&gt;&lt;P&gt;UK&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USA:&lt;/P&gt;&lt;P&gt;LOAD Country Resident Countries where lower(Country)='usa';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCountry=Peek('Country',0,'USA');&amp;nbsp; //---or you can manually set the variable value to USA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table Countries;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * FROM QVD.qvd (qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE EXISTS('$(vCountry)');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969912#M978200</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-21T09:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969913#M978201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Country filed has USA, INDIA, JAPAN. However you have taken only USA. First I have to take QVD with all countries and second i have to take only USA by using of exists(). Please see my original post i added sample code.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As I understand your sample code, both tables (ALL countries and USA table) would be autoconcatenated and resulting in a single table, containing duplicate records for USA.&lt;/P&gt;&lt;P&gt;Is this what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969913#M978201</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-21T09:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969914#M978202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro,&lt;/P&gt;&lt;P&gt;I tried your logic but no luck, please see below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country:&lt;/P&gt;&lt;P&gt;LOAD Country&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Country.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;USA:&lt;/P&gt;&lt;P&gt;LOAD Country&amp;nbsp; AS USA&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Country.qvd(qvd) where Exists (Country,'USA');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Country;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969914#M978202</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-08-21T09:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969915#M978203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Jagan, just simple i have one QVD1 with 3 countries and i am taking one more QVD2 it has country field so i am taking USA records itself by using where existes() with QVD1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969915#M978203</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-08-21T09:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969916#M978204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see my reply to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Alvaro.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969916#M978204</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2015-08-21T09:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exists()</title>
      <link>https://community.qlik.com/t5/QlikView/Exists/m-p/969917#M978205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nihhal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you loading your Country.qvd twice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your requirements you said: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;3. I want to extract only USA data by optimized way.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;According to page 423 in QlikView Reference Manual the following code should work and be an optimized load since you are using the 'where exists' statement. Try this:&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Country AS USA&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM Country.qvd (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where exists(Country,'USA');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists/m-p/969917#M978205</guid>
      <dc:creator>Alvaro_Palacios</dc:creator>
      <dc:date>2015-08-21T09:54:05Z</dc:date>
    </item>
  </channel>
</rss>

