<?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: Using a Variable when loading from QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602160#M684074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Williams, You can get by Inner Join like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;LOAD A, B, C, D, Fiscal_Wk From Source&lt;/P&gt;&lt;P&gt;Inner Join LOAD Max(Fiscal_Wk) AS Fiscal_Wk Resident TABLE ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 20:17:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-18T20:17:48Z</dc:date>
    <item>
      <title>Using a Variable when loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602152#M684066</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;I am trying to load from a QVD only the records where the fiscal week is equal to max fiscal week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if someone would be able to point out the error in what I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Fiscal_Wk) as MaxFW&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vWeek=&amp;nbsp; MaxFW;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table where Fiscal_Wk = $(vWeek);&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Store&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Store Table2 into (Folder Location);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Tables Table, Table1, Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Archie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 16:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602152#M684066</guid>
      <dc:creator />
      <dc:date>2014-02-18T16:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable when loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602153#M684067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET vWeek = Peek('&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MaxFW&lt;/STRONG&gt;', 0, '&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table1&lt;/STRONG&gt;');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 16:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602153#M684067</guid>
      <dc:creator>vivientexier</dc:creator>
      <dc:date>2014-02-18T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable when loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602154#M684068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Table where Fiscal_Wk = &lt;STRONG style="color: #ff0000;"&gt;'&lt;/STRONG&gt;$(vWeek)&lt;STRONG style="color: #ff0000;"&gt;'&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 16:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602154#M684068</guid>
      <dc:creator>vivientexier</dc:creator>
      <dc:date>2014-02-18T16:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable when loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602155#M684069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on how I've done something similar in one of my reports...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Max( Fiscal_Wk ) as MaxFW&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vWeek = peek('MaxFW');&lt;/P&gt;&lt;P&gt;DROP TABLE Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT Table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE Fiscal_WK = $( vWeek );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Drop tables etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 16:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602155#M684069</guid>
      <dc:creator />
      <dc:date>2014-02-18T16:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable when loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602156#M684070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the example posted by &lt;A href="https://community.qlik.com/qlik-users/55818"&gt;Vivien TEXIER&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's the same answer that I had&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 16:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602156#M684070</guid>
      <dc:creator />
      <dc:date>2014-02-18T16:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable when loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602157#M684071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seem to be getting an error that Table2 is not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why it doesn't recognize this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the same code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Max(Fiscal_Wk) as MaxFW&lt;/P&gt;&lt;P&gt;Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vWeek = Peek('MaxFW', 0, 'Table1');&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;Resident Table where Fiscal_Wk =&amp;nbsp; '$(vWeek)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Store&lt;/P&gt;&lt;P&gt;Store Table2 into &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(Folder Location)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Tables Table, Table1, Table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 18:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602157#M684071</guid>
      <dc:creator />
      <dc:date>2014-02-18T18:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable when loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602158#M684072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Archie,&lt;/P&gt;&lt;P&gt;Table is not found because its getting concatenated. &lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Noconcatenate&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Table where Fiscal_Wk =&amp;nbsp; '$(vWeek)';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 18:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602158#M684072</guid>
      <dc:creator />
      <dc:date>2014-02-18T18:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable when loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602159#M684073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks @&lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="55818" data-objecttype="3" href="https://community.qlik.com/people/vivientexier" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Vivien TEXIER&lt;/A&gt; and @&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/AjayVallab"&gt;AjayVallab&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Since Table and Table2 have the same exact fields, the tables were getting concatenated. You can prevent this by specifying the noconcatenate keyword. That forces Qlikview to create a separate table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here is the final code&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Max(Fiscal_Wk) as MaxFW&lt;/P&gt;&lt;P&gt;Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vWeek = Peek('MaxFW', 0, 'Table1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;noconcatenate &lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Resident Table where Fiscal_Wk =&amp;nbsp; $(vWeek);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DROP Tables Table, Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Store&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;Store Table2 into (Folder location);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Drop Table Table2&lt;/P&gt;&lt;P&gt;//Drop Tables Table, Table1, Table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602159#M684073</guid>
      <dc:creator />
      <dc:date>2014-02-18T19:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Variable when loading from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602160#M684074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Williams, You can get by Inner Join like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;LOAD A, B, C, D, Fiscal_Wk From Source&lt;/P&gt;&lt;P&gt;Inner Join LOAD Max(Fiscal_Wk) AS Fiscal_Wk Resident TABLE ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-Variable-when-loading-from-QVD/m-p/602160#M684074</guid>
      <dc:creator />
      <dc:date>2014-02-18T20:17:48Z</dc:date>
    </item>
  </channel>
</rss>

