<?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: Loading data from qvd with where clause from another qvd or resident load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102193#M16245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does not seem to find the Field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2018 16:23:29 GMT</pubDate>
    <dc:creator>stevietm</dc:creator>
    <dc:date>2018-07-02T16:23:29Z</dc:date>
    <item>
      <title>Loading data from qvd with where clause from another qvd or resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102191#M16243</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;As the title states i want to load data from a qvd with a where clause that only pulls data from another qvd where the where clause is true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. of what i am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;sales&lt;/P&gt;&lt;P&gt;from a.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;sales&lt;/P&gt;&lt;P&gt;from b.qvd where Key = resident &lt;SPAN style="font-size: 13.3333px;"&gt;Temp_Table1.key;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;drop table &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Reason why i want to do it this way is because my second qvd only has about 100k lines and the first one has 50 mil but only want to extract the matching 100k.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Not sure if this is possible or if there is another way around this... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Stevie&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102191#M16243</guid>
      <dc:creator>stevietm</dc:creator>
      <dc:date>2018-07-02T15:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from qvd with where clause from another qvd or resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102192#M16244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Qualify Key;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Temp_Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;from a.qvd;&lt;/STRONG&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;&lt;STRONG&gt;Qualify Key;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;from b.qvd where Exists(Temp_Table1.Key,Table2.Key)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 16:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102192#M16244</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-07-02T16:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from qvd with where clause from another qvd or resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102193#M16245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does not seem to find the Field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 16:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102193#M16245</guid>
      <dc:creator>stevietm</dc:creator>
      <dc:date>2018-07-02T16:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from qvd with where clause from another qvd or resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102194#M16246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Temp_Table1: (the smaller table with 100K rows)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;sales&lt;/P&gt;&lt;P&gt;from a.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left keep (Temp_Table1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2: (50 mil rows)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Key,&lt;/P&gt;&lt;P&gt;Date as Date2, (changed name so keep only uses Key to match)&lt;/P&gt;&lt;P&gt;sales as sales2, (changed name so keep only uses Key to match)&lt;/P&gt;&lt;P&gt;other_fields_you_want_from_big_file&lt;/P&gt;&lt;P&gt;from b.qvd &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table TempTable1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left makes all rows from first table included in resulting Temp_Table1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keep (tablename) makes QV look for and make a table (Table2) that just keeps matching rows in 2nd file using the common field, Key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will add rows if there are multiple matching rows in the 2nd file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example assumes the Key is enough to identify the rows you want in the big table.&lt;/P&gt;&lt;P&gt;If not, you need to make a column in both tables to use for this purpose, ex. Key &amp;amp; '-' &amp;amp; Date &amp;amp; '-' &amp;amp; sales as index. and then change the name of Key in one of the tables so QV doesn't try to match with it also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not the only way to do this.&lt;/P&gt;&lt;P&gt;I think you could also do a sub-query of small file to select Key and match large file key on that in the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 21:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102194#M16246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-02T21:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from qvd with where clause from another qvd or resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102195#M16247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I didn't say that quite right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;left makes all rows from first table included in resulting Temp_Table1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That's not what I meant to say. Actually it uses all the rows in Temp_Table1 and looks at the Key field there and then sees if there's a match in b.qvd. If there's a match, it keeps the row for Table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Table2 just has rows that match the Temp_Table1 Key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 21:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102195#M16247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-02T21:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from qvd with where clause from another qvd or resident load</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102196#M16248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="32944" data-objecttype="1" href="https://community.qlik.com/thread/32944"&gt;https://community.qlik.com/thread/32944&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="18826" data-objecttype="1" href="https://community.qlik.com/thread/18826"&gt;https://community.qlik.com/thread/18826&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 15:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-data-from-qvd-with-where-clause-from-another-qvd-or/m-p/102196#M16248</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-07-03T15:32:00Z</dc:date>
    </item>
  </channel>
</rss>

