<?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: Load Only Latest Year from QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418906#M155830</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; when u use max() /aggregaton function..u want to use group by clause..&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;Where fiscal_year = 2013;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Nov 2012 01:46:05 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2012-11-09T01:46:05Z</dc:date>
    <item>
      <title>Load Only Latest Year from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418905#M155829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must be having a brian cramp here....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a QVD that contains a field called Fiscal_Year. It has values like 2010, 2011, 2012, 2013. I always want to load only those rows for the most recent year, but I can't get it to work. It just throws an error and I have to re-open the .QVW. I just want to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * &lt;/P&gt;&lt;P&gt;FROM MyData.QVD&lt;/P&gt;&lt;P&gt;WHERE Fiscal_Year=Max(Fiscal_Year);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 00:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418905#M155829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-09T00:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Load Only Latest Year from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418906#M155830</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; when u use max() /aggregaton function..u want to use group by clause..&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;Where fiscal_year = 2013;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 01:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418906#M155830</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-09T01:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load Only Latest Year from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418907#M155831</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 u don't know the maximum year..then try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;Load * from myfilename.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join&lt;/P&gt;&lt;P&gt;Load max(fiscal_year) as fiscal_year, primarykeyfield resident Tab1 group by primarykeyfield;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 01:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418907#M155831</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-09T01:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Load Only Latest Year from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418908#M155832</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;Try to use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Maxi:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD max(Fiscal_Year) as MaxYear &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM MyData.QVD group by Fiscal_Year;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vMax=peek('MaxYear',0,'Maxi');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop table Maxi;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&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;FROM MyData.QVD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE Fiscal_Year='$(vMax)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 07:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418908#M155832</guid>
      <dc:creator />
      <dc:date>2012-11-09T07:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load Only Latest Year from QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418909#M155833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Nitin&lt;/SPAN&gt;. You'd think it would simpler, but this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 18:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Only-Latest-Year-from-QVD/m-p/418909#M155833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-09T18:58:53Z</dc:date>
    </item>
  </channel>
</rss>

