<?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: 3 Year Rolling Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/3-Year-Rolling-Average/m-p/969487#M468418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Zeth,&lt;/P&gt;&lt;P&gt;if your condition is when no selection is made rolling 3 yr. calculation should be shown and if any selection is done on year then only that year's value should be show up then use the below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Only(Year1),sum ({&amp;lt;Year1={'=$(=max(Year1))'}&amp;gt;}Rolling),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ({&amp;lt;Year1={'&amp;gt;=$(=max(Year1)-2)&amp;lt;=$(=max(Year1))'}&amp;gt;}Rolling))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2015 17:55:06 GMT</pubDate>
    <dc:creator>saurabh5</dc:creator>
    <dc:date>2015-09-03T17:55:06Z</dc:date>
    <item>
      <title>3 Year Rolling Average</title>
      <link>https://community.qlik.com/t5/QlikView/3-Year-Rolling-Average/m-p/969484#M468415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used an expression to figure out the 3 year rolling average, but how do i show only the most recent for example. I only want to show the most recent rolling 3 year average so i only want to show the value for 2014, but when i try to hide the other years it effects the expression so the value is not the same. Any ideas?&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rolling&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2906&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1732&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1876&lt;/P&gt;&lt;P&gt;2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1036&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 14:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Year-Rolling-Average/m-p/969484#M468415</guid>
      <dc:creator />
      <dc:date>2015-09-03T14:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Year Rolling Average</title>
      <link>https://community.qlik.com/t5/QlikView/3-Year-Rolling-Average/m-p/969485#M468416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be much easier to explain if you posted a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 16:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Year-Rolling-Average/m-p/969485#M468416</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-09-03T16:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Year Rolling Average</title>
      <link>https://community.qlik.com/t5/QlikView/3-Year-Rolling-Average/m-p/969486#M468417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you use the expression like this for rolling?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva; color: #0000ff;"&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;sum(aggr(rangesum&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva; color: #000000;"&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva; color: #0000ff;"&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;above&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva; color: #000000;"&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva; color: #0000ff;"&gt;&lt;SPAN lang="en-US" style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;total s&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva; color: #0000ff;"&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;um&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva; color: #000000;"&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;({&amp;lt;Year=&amp;gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva; color: #800000;"&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;Amount&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: verdana, geneva; color: #000000;"&gt;&lt;SPAN lang="en" style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;),0,3)),Year))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To see the latest year, you may need to try set exp like below-&lt;/P&gt;&lt;P&gt;{&amp;lt;Year={$(=Max(Year))}&lt;/P&gt;&lt;P&gt;Or follow the post &lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;‌ for detailed understanding&lt;/P&gt;&lt;P&gt;posted by&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always share sample data for faster response as &lt;A href="https://community.qlik.com/qlik-users/2310"&gt;troyansky&lt;/A&gt; suggested. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 17:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Year-Rolling-Average/m-p/969486#M468417</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-09-03T17:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: 3 Year Rolling Average</title>
      <link>https://community.qlik.com/t5/QlikView/3-Year-Rolling-Average/m-p/969487#M468418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Zeth,&lt;/P&gt;&lt;P&gt;if your condition is when no selection is made rolling 3 yr. calculation should be shown and if any selection is done on year then only that year's value should be show up then use the below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Only(Year1),sum ({&amp;lt;Year1={'=$(=max(Year1))'}&amp;gt;}Rolling),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ({&amp;lt;Year1={'&amp;gt;=$(=max(Year1)-2)&amp;lt;=$(=max(Year1))'}&amp;gt;}Rolling))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 17:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3-Year-Rolling-Average/m-p/969487#M468418</guid>
      <dc:creator>saurabh5</dc:creator>
      <dc:date>2015-09-03T17:55:06Z</dc:date>
    </item>
  </channel>
</rss>

