<?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: Rolling Last 4 Years in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497043#M1134142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Nihhal L,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a similar inquiry earlier, please find there the best answer with a brilliant solution:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/35870" title="http://community.qlik.com/thread/35870"&gt;http://community.qlik.com/thread/35870&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With similar logic, you can flag years if you do not want to display exact 48 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Nov 2013 04:20:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-08T04:20:32Z</dc:date>
    <item>
      <title>Rolling Last 4 Years</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497042#M1134141</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;I want to show data like if i click 2013 year in list box, straight table will be shown 2013,2012,2011,2010 years data with Revenue metric&lt;/P&gt;&lt;P&gt;Please let me get solution for this Requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Nihhal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 04:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497042#M1134141</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2013-11-08T04:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Last 4 Years</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497043#M1134142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Nihhal L,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a similar inquiry earlier, please find there the best answer with a brilliant solution:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/35870" title="http://community.qlik.com/thread/35870"&gt;http://community.qlik.com/thread/35870&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With similar logic, you can flag years if you do not want to display exact 48 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 04:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497043#M1134142</guid>
      <dc:creator />
      <dc:date>2013-11-08T04:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Last 4 Years</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497044#M1134143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for reply Kadir i want yera wise suppose i have only year dimension like 2008,09,10,11,12.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 04:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497044#M1134143</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2013-11-08T04:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rolling Last 4 Years</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497045#M1134144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nihhal L,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may wish to try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year ={"&amp;gt;=$(=Date(AddYears(Date#(max(Year),'YYYY'),&lt;SPAN style="color: #ff0000;"&gt;-4&lt;/SPAN&gt;),'YYYY')) &amp;lt;=$(=Date(AddYears(Date#(max(Year),'YYYY'),&lt;SPAN style="color: #ff0000;"&gt;0&lt;/SPAN&gt;),'YYYY'))"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this does is, it finds the maximum year and sets range from now until 4 years back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some occasions, you may wish to limit your data to last year's end. In that case, set it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year ={"&amp;gt;=$(=Date(AddYears(Date#(max(Year),'YYYY'),&lt;SPAN style="color: #ff0000;"&gt;-4&lt;/SPAN&gt;),'YYYY')) &amp;lt;=$(=Date(AddYears(Date#(max(Year),'YYYY'),&lt;SPAN style="color: #ff0000;"&gt;-1&lt;/SPAN&gt;),'YYYY'))"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changes were indicated in red font for your convenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps. Let us know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 05:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497045#M1134144</guid>
      <dc:creator />
      <dc:date>2013-11-08T05:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Last 4 Years</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497046#M1134145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the attached sample.&lt;/P&gt;&lt;P&gt;Expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year = {"&amp;gt;=$(=(Max(Year), -3))&amp;lt;=$(=(Max(Year)))"}&amp;gt;}Sale)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 05:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497046#M1134145</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-11-08T05:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Last 4 Years</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497047#M1134146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You tresesco.&lt;/P&gt;&lt;P&gt;NiHhal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 06:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Last-4-Years/m-p/497047#M1134146</guid>
      <dc:creator>nihhalmca</dc:creator>
      <dc:date>2014-02-27T06:07:02Z</dc:date>
    </item>
  </channel>
</rss>

