<?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 12 month rangesum problem in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rolling-12-month-rangesum-problem/m-p/1547533#M62819</link>
    <description>&lt;P&gt;May be this&lt;/P&gt;&lt;PRE&gt;-Sum(Aggr(RangeSum(Above(Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;YearMonth&amp;gt;}&lt;/FONT&gt; [3345232000 Net Sales, total]), 0, 12)), [Business region], [Sub region], YearMonth))/1000
/
(
Sum(Aggr(RangeSum(Above(Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;YearMonth&amp;gt;} &lt;/FONT&gt;[1510000000 Inventories]), 0, 3)), [Business region], [Sub region], YearMonth))/3/1000
)&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Feb 2019 13:23:59 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-02-21T13:23:59Z</dc:date>
    <item>
      <title>Rolling 12 month rangesum problem</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-month-rangesum-problem/m-p/1547513#M62818</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hello Everyone.&lt;/P&gt;&lt;P&gt;I have a data set streching from 2009-2019.&lt;/P&gt;&lt;P&gt;I am trying to create a graph with our inventory turnover currently defined as:&lt;/P&gt;&lt;P&gt;-sum(aggr(rangesum(above(sum([3345232000 Net Sales, total]),0,12)),[Business region], [Sub region], YearMonth))/1000&lt;BR /&gt;/&lt;BR /&gt;(&lt;BR /&gt;sum(aggr(rangesum(above(sum([1510000000 Inventories]),0,3)),[Business region], [Sub region], YearMonth))/3/1000&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So basically it takes 12 month Net sales / 3 month average inventory value.&lt;/P&gt;&lt;P&gt;Now to my problem:&lt;/P&gt;&lt;P&gt;The first 12 month will always show incorrect values because of my rangesum formula. If I were to selct 2018-01 to 2018-12 in my YearMonth filter only 2018-P12 would be correct so for that reason I would have to select 2017-01 to 2018-12 to have 2018 values correct.&lt;/P&gt;&lt;P&gt;how can I re-write this to look at max YearMonth selected and then 12&amp;nbsp; month back with correct values for all month.&lt;/P&gt;&lt;P&gt;Monthnum is my dimension for month serial number...So I want to look at max YearMonth selected in my filter and then calculate 12 month back based on Monthnum.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-month-rangesum-problem/m-p/1547513#M62818</guid>
      <dc:creator>Akakaboto</dc:creator>
      <dc:date>2021-04-02T07:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 month rangesum problem</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-month-rangesum-problem/m-p/1547533#M62819</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;PRE&gt;-Sum(Aggr(RangeSum(Above(Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;YearMonth&amp;gt;}&lt;/FONT&gt; [3345232000 Net Sales, total]), 0, 12)), [Business region], [Sub region], YearMonth))/1000
/
(
Sum(Aggr(RangeSum(Above(Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;YearMonth&amp;gt;} &lt;/FONT&gt;[1510000000 Inventories]), 0, 3)), [Business region], [Sub region], YearMonth))/3/1000
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Feb 2019 13:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-month-rangesum-problem/m-p/1547533#M62819</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-21T13:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 month rangesum problem</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-12-month-rangesum-problem/m-p/1547558#M62820</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;PRE&gt;-Sum(Aggr(RangeSum(Above(Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;YearMonth&amp;gt;}&lt;/FONT&gt; [3345232000 Net Sales, total]), 0, 12)), [Business region], [Sub region], YearMonth))/1000
/
(
Sum(Aggr(RangeSum(Above(Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;YearMonth&amp;gt;} &lt;/FONT&gt;[1510000000 Inventories]), 0, 3)), [Business region], [Sub region], YearMonth))/3/1000
)&lt;/PRE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you Sir!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 13:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-12-month-rangesum-problem/m-p/1547558#M62820</guid>
      <dc:creator>Akakaboto</dc:creator>
      <dc:date>2019-02-21T13:58:08Z</dc:date>
    </item>
  </channel>
</rss>

