<?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: latest and pervious year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121221#M369511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Year)&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Year) - 1&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2016 12:38:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-03T12:38:13Z</dc:date>
    <item>
      <title>latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121220#M369510</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 having list of year from 2010 to 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my qvd i want to retrieve the latest year and pervious year only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i need 2016 and 2015 only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121220#M369510</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2016-08-03T12:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121221#M369511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Year)&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Year) - 1&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121221#M369511</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T12:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121222#M369512</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;Add a where clause in your loader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from Data.QVD&lt;/P&gt;&lt;P&gt;WHERE Year &amp;gt;= 2015;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121222#M369512</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-08-03T12:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121223#M369513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how declare this in the variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121223#M369513</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2016-08-03T12:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121224#M369514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want them as values, then use triggers, else just give the above as definition to your variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121224#M369514</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T12:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121225#M369515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to achieve this in the if loop condtion in the qvd generator &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121225#M369515</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2016-08-03T12:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121226#M369516</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 would need more information on your script and the loop in questions as you may be able to set it in variable and then increment it if needed. depend a lot of the script and what exactly you're trying to achieve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121226#M369516</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-08-03T13:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121227#M369517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have field called year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if i want to call that field only with current year and previous year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121227#M369517</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2016-08-03T13:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121228#M369518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure, What is mean of Variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps this&lt;/P&gt;&lt;P&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 style="font-style: inherit; font-family: inherit;"&gt;SET vCurrYear = Max(Year);&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 style="font-style: inherit; font-family: inherit;"&gt;SET vPrevYear = Max(Year) - 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121228#M369518</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-08-03T13:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121229#M369519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but you mentioned a loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want it to be dynamic you could add a variable&lt;/P&gt;&lt;P&gt;LET vYear = YEAR(ADDYEARS(TODAY(),-1));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;Resident Location&lt;/P&gt;&lt;P&gt;WHERE Year &amp;gt;= $(vYear);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121229#M369519</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-08-03T13:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121230#M369520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while putting where condition this can be used in resident load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121230#M369520</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2016-08-03T13:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121231#M369521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i assigned the variable and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while loading the qvd &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;laod *&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;xxx qvd&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;WHERE Year &amp;gt;= $(vYear);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;it showing field not found&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121231#M369521</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2016-08-03T13:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: latest and pervious year</title>
      <link>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121232#M369522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vYear = Year(Today())-1 ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then load as below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;laod *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;xxx qvd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;WHERE Year &amp;gt;= $(vYear);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/latest-and-pervious-year/m-p/1121232#M369522</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-08-03T13:33:01Z</dc:date>
    </item>
  </channel>
</rss>

