<?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 Rolling Periods in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-Periods/m-p/1542845#M745705</link>
    <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I've been searching for an answer to this but I'm having no luck. I want to show the sales over the last 12 months, so for Jan-19 I want it to show the sum sales from Feb-18 to Jan-19. This in itself is easy enough to do using RangeSum(Above(Sum(Sales),0,12)) for example, but the issue I'm having is I want to restrict the chart to only display 2019, but I still want to keep the data from 2018 within the calculations. When I select 2019, Jan-19 only shows that months and nothing from 2018&lt;/P&gt;&lt;P&gt;I know there must be a way to do this otherwise every 12 months of any such graph will have incomplete data. Are you able to help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see attached&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:28:58 GMT</pubDate>
    <dc:creator>Karl_Hart</dc:creator>
    <dc:date>2024-11-16T04:28:58Z</dc:date>
    <item>
      <title>Rolling Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Periods/m-p/1542845#M745705</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I've been searching for an answer to this but I'm having no luck. I want to show the sales over the last 12 months, so for Jan-19 I want it to show the sum sales from Feb-18 to Jan-19. This in itself is easy enough to do using RangeSum(Above(Sum(Sales),0,12)) for example, but the issue I'm having is I want to restrict the chart to only display 2019, but I still want to keep the data from 2018 within the calculations. When I select 2019, Jan-19 only shows that months and nothing from 2018&lt;/P&gt;&lt;P&gt;I know there must be a way to do this otherwise every 12 months of any such graph will have incomplete data. Are you able to help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see attached&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Periods/m-p/1542845#M745705</guid>
      <dc:creator>Karl_Hart</dc:creator>
      <dc:date>2024-11-16T04:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Periods/m-p/1542895#M745706</link>
      <description>&lt;P&gt;Since you've put your Year listbox in the Calendar alternate state you need this expression:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year=Calendar::Year&amp;gt;}aggr(RangeSum(Above(Sum({&amp;lt;MonthYear&amp;gt;}Sales),0,12)),MonthYear))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 10:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Periods/m-p/1542895#M745706</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-02-12T10:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Periods/m-p/1543430#M745707</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18624"&gt;@Gysbert_Wassenaar&lt;/a&gt;&amp;nbsp;that has worked. I only put the alternate state in this example to explain what I was looking for but I've tweaked your answer to be&amp;nbsp;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={2019}&amp;gt;}aggr(RangeSum(Above(Sum({&amp;lt;MonthYear=, Year=&amp;gt;}Sales),0,12)),MonthYear))&lt;/P&gt;&lt;P&gt;and this does the job perfectly&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 07:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Periods/m-p/1543430#M745707</guid>
      <dc:creator>Karl_Hart</dc:creator>
      <dc:date>2019-02-13T07:52:42Z</dc:date>
    </item>
  </channel>
</rss>

