<?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 Result based on previous months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Result-based-on-previous-months/m-p/1266344#M398898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to sum 12 values for each month, based on the "ThisMonth" values of the previous 12 months.&lt;/P&gt;&lt;P&gt;ThisMonth is just a sum: &lt;SPAN style="font-family: 'courier new', courier;"&gt;Sum(InvoiceQuantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for the sake of this demo, I've been able to calculate "Prev Months" by:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'courier new', courier;"&gt;RangeSum(Below(TOTAL Sum(InvoiceQuantity),1,12))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this, is that I'm stuck with this specific order. I want to remove this dependency.&lt;/P&gt;&lt;P&gt;Also, I can only calculate the RangeSum on values I'm displaying in the table. If I filter out a month, say ReportingMonth 9, then my "Prev Month" value loses that number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to calculate this sum, even if the months needed for the calculation aren't displayed in the table (filtered out, for example).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/144130_Screenshot_1.png" style="height: 479px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2016 10:50:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-17T10:50:33Z</dc:date>
    <item>
      <title>Result based on previous months</title>
      <link>https://community.qlik.com/t5/QlikView/Result-based-on-previous-months/m-p/1266344#M398898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to sum 12 values for each month, based on the "ThisMonth" values of the previous 12 months.&lt;/P&gt;&lt;P&gt;ThisMonth is just a sum: &lt;SPAN style="font-family: 'courier new', courier;"&gt;Sum(InvoiceQuantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for the sake of this demo, I've been able to calculate "Prev Months" by:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'courier new', courier;"&gt;RangeSum(Below(TOTAL Sum(InvoiceQuantity),1,12))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this, is that I'm stuck with this specific order. I want to remove this dependency.&lt;/P&gt;&lt;P&gt;Also, I can only calculate the RangeSum on values I'm displaying in the table. If I filter out a month, say ReportingMonth 9, then my "Prev Month" value loses that number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to calculate this sum, even if the months needed for the calculation aren't displayed in the table (filtered out, for example).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/144130_Screenshot_1.png" style="height: 479px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 10:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Result-based-on-previous-months/m-p/1266344#M398898</guid>
      <dc:creator />
      <dc:date>2016-11-17T10:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Result based on previous months</title>
      <link>https://community.qlik.com/t5/QlikView/Result-based-on-previous-months/m-p/1266345#M398899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2015/11/02/the-as-of-table#comment-49905" title="https://community.qlik.com/blogs/qlikviewdesignblog/2015/11/02/the-as-of-table#comment-49905"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2015/11/02/the-as-of-table#comment-49905&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 11:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Result-based-on-previous-months/m-p/1266345#M398899</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2016-11-17T11:04:57Z</dc:date>
    </item>
  </channel>
</rss>

