<?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: last but one year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/last-but-one-year/m-p/625819#M1112306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find the second highest year by using:&lt;/P&gt;&lt;P&gt;max(Year, 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to sum sales, something like:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=max(Year, 2))}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 19:43:08 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2014-02-24T19:43:08Z</dc:date>
    <item>
      <title>last but one year</title>
      <link>https://community.qlik.com/t5/QlikView/last-but-one-year/m-p/625818#M1112305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have&amp;nbsp; requirement like displaying sales of&amp;nbsp; last but one year not current year-1.&lt;/P&gt;&lt;P&gt;year field is like 2014 and 2011 and 2008 like this not in order .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-but-one-year/m-p/625818#M1112305</guid>
      <dc:creator />
      <dc:date>2014-02-24T19:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: last but one year</title>
      <link>https://community.qlik.com/t5/QlikView/last-but-one-year/m-p/625819#M1112306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find the second highest year by using:&lt;/P&gt;&lt;P&gt;max(Year, 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to sum sales, something like:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=max(Year, 2))}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-but-one-year/m-p/625819#M1112306</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-02-24T19:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: last but one year</title>
      <link>https://community.qlik.com/t5/QlikView/last-but-one-year/m-p/625820#M1112307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, in the master calendar you should define a flag for last year:&lt;/P&gt;&lt;P&gt;&amp;nbsp; If( Year(Date) = Year(Today())-1, 1, 0) as IsLastYear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use this in a Set Analysis expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum ( {$&amp;lt;IsLastYear={1}&amp;gt;} Amount ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-but-one-year/m-p/625820#M1112307</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-24T19:46:10Z</dc:date>
    </item>
  </channel>
</rss>

