<?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: where exists not filtering data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572444#M683373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think because in first condition your where exist condition will get those records which is loaded above so far.&lt;/P&gt;&lt;P&gt;so, after again use this exist condition for another table on the basis of filtering table the condition will get only those records which are in all three tables and second time used where exists condition doesn't give you the exact result which you want So, you have to load 2nd table two times like below and make join between them&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD RowNo() as Key,* INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PId, PValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, 60&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;LOAD RowNo() as Key,* INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PId, PValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, 90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, 110&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, 120&lt;/P&gt;&lt;P&gt;]Where Exists(PId);&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;AgainT2:&lt;/P&gt;&lt;P&gt;LOAD RowNo() as Key,* INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PId, PValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, 90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, 110&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, 120&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;T3:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt; PId ,PValue Where Exists(PId);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOAD RowNo() as Key, * Inline [ &lt;/P&gt;&lt;P&gt;&amp;nbsp; PId,PValue&lt;/P&gt;&lt;P&gt;&amp;nbsp; 7, 15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, 45&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, 60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11, 65&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2014 10:01:43 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2014-02-12T10:01:43Z</dc:date>
    <item>
      <title>where exists not filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572442#M683371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am loading "Dealer Id" from a table then filtering the data while loading another table using where exists clause(dealer id,dealer no).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filtering is done for above table.&lt;/P&gt;&lt;P&gt; then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate another table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while loading this table using where exists clause(dealer id,dealer no).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but data is not filtered for 2nd table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why exists not working in 2nd table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 06:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572442#M683371</guid>
      <dc:creator />
      <dc:date>2014-02-12T06:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: where exists not filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572443#M683372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i think try according to this,&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;load&amp;nbsp; * from&amp;nbsp; Table1;&lt;/P&gt;&lt;P&gt; join&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;load&amp;nbsp; * from&amp;nbsp; Table2 where exits(dealer id,dealer no) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table11:&lt;/P&gt;&lt;P&gt;load&amp;nbsp; * from&amp;nbsp; Table11;&lt;/P&gt;&lt;P&gt; join&lt;/P&gt;&lt;P&gt;Table22:&lt;/P&gt;&lt;P&gt;load&amp;nbsp; * from&amp;nbsp; Table22 where exits(dealer id,dealer no) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load * resident Table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load * resident Table11;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop tables Table1,Table11; // if&amp;nbsp; you change name of field in Output1 and Output2 tables.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 07:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572443#M683372</guid>
      <dc:creator />
      <dc:date>2014-02-12T07:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: where exists not filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572444#M683373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think because in first condition your where exist condition will get those records which is loaded above so far.&lt;/P&gt;&lt;P&gt;so, after again use this exist condition for another table on the basis of filtering table the condition will get only those records which are in all three tables and second time used where exists condition doesn't give you the exact result which you want So, you have to load 2nd table two times like below and make join between them&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD RowNo() as Key,* INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PId, PValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, 60&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;LOAD RowNo() as Key,* INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PId, PValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, 90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, 110&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, 120&lt;/P&gt;&lt;P&gt;]Where Exists(PId);&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;AgainT2:&lt;/P&gt;&lt;P&gt;LOAD RowNo() as Key,* INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PId, PValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, 90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, 110&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, 120&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;T3:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt; PId ,PValue Where Exists(PId);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOAD RowNo() as Key, * Inline [ &lt;/P&gt;&lt;P&gt;&amp;nbsp; PId,PValue&lt;/P&gt;&lt;P&gt;&amp;nbsp; 7, 15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, 45&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, 60&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11, 65&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572444#M683373</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-02-12T10:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: where exists not filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572445#M683374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why to use join?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading multiple files from 2 different folders. in each folder there are multiple files, for that i use "*" in from clause.&lt;/P&gt;&lt;P&gt;While executing below code, Table1 files get filtered using where exists but Table2 files dont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load id&lt;/P&gt;&lt;P&gt;from TableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load X, Y&lt;/P&gt;&lt;P&gt;from &lt;STRONG&gt;D:\FolderA\*.xls&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where exists (id,X);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(Table1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2&lt;/P&gt;&lt;P&gt;Load X, Y, Z&lt;/P&gt;&lt;P&gt;from &lt;STRONG&gt;D:\FolderB\*.xls&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where exists (id,X);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572445#M683374</guid>
      <dc:creator />
      <dc:date>2014-02-12T10:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: where exists not filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572446#M683375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santhosh, As per your script, you are loading the data from two folder files having the &lt;STRONG&gt;id&lt;/STRONG&gt; only. Please check the Folder B files having the &lt;STRONG&gt;id&lt;/STRONG&gt; values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 13:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572446#M683375</guid>
      <dc:creator />
      <dc:date>2014-02-12T13:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: where exists not filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572447#M683376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes ,It is having Id values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 07:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572447#M683376</guid>
      <dc:creator />
      <dc:date>2014-02-13T07:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: where exists not filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572448#M683377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then it should come. Can you please share some sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 13:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-exists-not-filtering-data/m-p/572448#M683377</guid>
      <dc:creator />
      <dc:date>2014-02-13T13:21:24Z</dc:date>
    </item>
  </channel>
</rss>

