<?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 How to calculate months with missing records in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-calculate-months-with-missing-records/m-p/21787#M1460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to calculate the cumulative monthly quantity over the course of the year. So when I try using the below formula to create my table i get the following output, which is not quite what I wanted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data (example): &lt;/STRONG&gt;Note that not every Year-Month has a recorded quantity for given product&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Product&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Year-Month&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Qty&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BCG&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2016-Jan&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1,300,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BCG&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2016-Mar&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3,476,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;bOPV&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;....&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;....&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Formula&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Above(TOTAL Sum([Qty]), 0, RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Help Qlik Cum.png" class="jive-image image-1" src="/legacyfs/online/200860_Help Qlik Cum.png" style="height: 226px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problems:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; I would like the cumulative counter to set back to 0 in the beginning of every year&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) &lt;/STRONG&gt;For months without records (the grey), I would like it so that 0 is added to the cumulative sum. So for example BCG in 2016-Jan is 1,300,000, and I would like BCG in 2016-Feb to be 1,300,000 (so 1,300,000 + 0)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3)&lt;/STRONG&gt; There is no row for 2017-Jan because there are no records for any of the products that Year-Month. But I would like all the columns for that Year-Month to be 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2018 10:18:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-26T10:18:15Z</dc:date>
    <item>
      <title>How to calculate months with missing records</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-months-with-missing-records/m-p/21787#M1460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to calculate the cumulative monthly quantity over the course of the year. So when I try using the below formula to create my table i get the following output, which is not quite what I wanted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data (example): &lt;/STRONG&gt;Note that not every Year-Month has a recorded quantity for given product&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Product&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Year-Month&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Qty&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BCG&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2016-Jan&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1,300,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BCG&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2016-Mar&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3,476,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;bOPV&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;....&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;....&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Formula&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Above(TOTAL Sum([Qty]), 0, RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Help Qlik Cum.png" class="jive-image image-1" src="/legacyfs/online/200860_Help Qlik Cum.png" style="height: 226px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problems:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; I would like the cumulative counter to set back to 0 in the beginning of every year&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) &lt;/STRONG&gt;For months without records (the grey), I would like it so that 0 is added to the cumulative sum. So for example BCG in 2016-Jan is 1,300,000, and I would like BCG in 2016-Feb to be 1,300,000 (so 1,300,000 + 0)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3)&lt;/STRONG&gt; There is no row for 2017-Jan because there are no records for any of the products that Year-Month. But I would like all the columns for that Year-Month to be 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 10:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-months-with-missing-records/m-p/21787#M1460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-26T10:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate months with missing records</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-months-with-missing-records/m-p/21788#M1461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest using &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 17:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-months-with-missing-records/m-p/21788#M1461</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-26T17:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate months with missing records</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-months-with-missing-records/m-p/21789#M1462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that was super helpful sunny, an as-of table is exactly what i needed here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 08:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-months-with-missing-records/m-p/21789#M1462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-03T08:58:52Z</dc:date>
    </item>
  </channel>
</rss>

