<?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: How to dynamically sum over periods in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-dynamically-sum-over-periods/m-p/1513077#M750965</link>
    <description>&lt;P&gt;Try like this (if you have QV12 or above)&lt;/P&gt;&lt;PRE&gt;=Aggr(RangeSum(Above(Sum({&amp;lt;YR_MTH&amp;gt;}Sales), 0, vVar)), (YR_MTH, (NUMERIC)))&lt;/PRE&gt;&lt;P&gt;Where vVar is set using an input box&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 438px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1108i0FF6782F9AFF5AF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 17:25:42 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-11-27T17:25:42Z</dc:date>
    <item>
      <title>How to dynamically sum over periods</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-dynamically-sum-over-periods/m-p/1513067#M750964</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;for an analysis I need to be able&amp;nbsp;sum up sales of a number of periods in a rolling manner. As example to create the value with 12 Months rolling&amp;nbsp;for October 2018 I need to sum-up sales Oct 2018 to Nov 2017, for September 2018 value the sum of Sep 2018 to Oct 2018 is required&lt;/P&gt;&lt;P&gt;I have sales data by month available. In addition I have a Month_ID (running number) available well. How to I define the expression in Qlikview to achieve the correct aggregated sales. In excel I would use the formula =sum(offset()).&lt;/P&gt;&lt;P&gt;I have attached an excel file with the case. 2 Tabs ('Calendar ' with Month_ID and YR_MTH values, 'Data' with the sales data by month). The data tab also contains the expected values I need to see in the table.&lt;/P&gt;&lt;P&gt;The rolling aggregation period should be dynamic hence I have also included a variable in Excel to simulate this.&lt;/P&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;P&gt;Claude&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-dynamically-sum-over-periods/m-p/1513067#M750964</guid>
      <dc:creator>claude_jakob</dc:creator>
      <dc:date>2024-11-16T05:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically sum over periods</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-dynamically-sum-over-periods/m-p/1513077#M750965</link>
      <description>&lt;P&gt;Try like this (if you have QV12 or above)&lt;/P&gt;&lt;PRE&gt;=Aggr(RangeSum(Above(Sum({&amp;lt;YR_MTH&amp;gt;}Sales), 0, vVar)), (YR_MTH, (NUMERIC)))&lt;/PRE&gt;&lt;P&gt;Where vVar is set using an input box&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 438px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1108i0FF6782F9AFF5AF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 17:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-dynamically-sum-over-periods/m-p/1513077#M750965</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-27T17:25:42Z</dc:date>
    </item>
  </channel>
</rss>

