<?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: Re: Using QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514856#M192297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the latest three years, based on the contents of the QVD, you will first have to read the complete QVD to determine the max year. The you can use that max year as a filter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MaxTemp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD max(Year) as MaxYear FROM myqvd.qvd (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vMaxYear = peek('MaxYear');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP TABLE MaxTemp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM myqvd.qvd (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE Year &amp;gt; $(vMaxYear)-3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 05:34:49 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2013-08-22T05:34:49Z</dc:date>
    <item>
      <title>Using QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514851#M192292</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;I have order table (Suppose i have 2010,2011,2012 years data in my table)&lt;/P&gt;&lt;P&gt;suppose i am adding some new data 2013 years data...&lt;/P&gt;&lt;P&gt;in my QVD i want to show last three years of data.......(means 2011,2012,2013)....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If am adding some 2014 data i want show 2012,2013,2014 years of data......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show last three years of data............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to implement in QVD ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 17:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514851#M192292</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2013-08-21T17:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514852#M192293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have 2014 data then what will be the current date now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tried with this-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(Today())&lt;/P&gt;&lt;P&gt;Year(Today())-2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 17:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514852#M192293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-21T17:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514853#M192294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like this in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM TableName&lt;/P&gt;&lt;P&gt;WHERE DateField&amp;gt;= AddYears(yearstart(today()),-2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 17:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514853#M192294</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2013-08-21T17:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514854#M192295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mphekin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today()&lt;/STRONG&gt; returns only current date. but i don't want current date year&lt;/P&gt;&lt;P&gt;suppose i have 2000,2001,2002, 2003,2004 i want return this time 2002,2003 and 2004..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am adding some new data 2005 year.. this time i want to return 2003,2004, and 2005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to return only last three years of data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514854#M192295</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2013-08-22T05:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514855#M192296</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;Tmp:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(YearField) as MaxYear&lt;/P&gt;&lt;P&gt;From &amp;lt;New Year Data&amp;gt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMaxYear = Peek('MaxYear') ;&lt;/P&gt;&lt;P&gt;Drop table Tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LastthreeYearData:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Load * From &amp;lt;New Year Data&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * From &amp;lt;QVD&amp;gt; Where YearField&amp;gt; ($(vMaxYear)-3) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: to handle QVD, you might have to tweak the above script a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514855#M192296</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-08-22T05:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514856#M192297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the latest three years, based on the contents of the QVD, you will first have to read the complete QVD to determine the max year. The you can use that max year as a filter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MaxTemp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD max(Year) as MaxYear FROM myqvd.qvd (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vMaxYear = peek('MaxYear');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP TABLE MaxTemp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM myqvd.qvd (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE Year &amp;gt; $(vMaxYear)-3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514856#M192297</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-08-22T05:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514857#M192298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;Get max year from qvd using below script and save it in variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxYear:&lt;BR /&gt;LOAD Max(Year) as MaxYear &lt;BR /&gt;FROM myqvd.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxYear = Peek('MaxYear');&lt;/P&gt;&lt;P&gt;DROP TABLE MaxTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load data for the last three years in the qvd by using the variable value&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM myqvd.qvd (qvd)&lt;BR /&gt;WHERE Year &amp;gt; $(vMaxYear)-3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-QVD/m-p/514857#M192298</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-08-22T05:57:04Z</dc:date>
    </item>
  </channel>
</rss>

