<?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 3M rolling average for data less than 3 months old in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/3M-rolling-average-for-data-less-than-3-months-old/m-p/840519#M295382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 3M (or 12 week) rolling average in a &lt;STRONG style="text-decoration: underline;"&gt;text box&lt;/STRONG&gt;, but it doesn't work for data less than 3 months old because it always averages the last 3 months even if the product was only launched 1 month ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. this is the formula I use in a texbox:&lt;/P&gt;&lt;P&gt;sum([REVENUE])-(Sum({&amp;lt;[CALENDAR DATE]={'&amp;gt;=$(=MonthStart(Max([CALENDAR DATE]), -2))&amp;lt;=$(=MonthEnd(Max([CALENDAR DATE])))'}&amp;gt;}&lt;/P&gt;&lt;P&gt;[REVENUE])/(3))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;[CALENDAR DATE]={'&amp;gt;=$(=MonthStart(Max([CALENDAR DATE]), -2))&amp;lt;=$(=MonthEnd(Max([CALENDAR DATE])))'}&amp;gt;}&lt;/P&gt;&lt;P&gt;[REVENUE])/(3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keeps taking the last 3 months even if data does not exist for that product (i.e. assumes zero revenue for months where the product was not launched). This messes up the 3M average. What's the way around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 03:57:25 GMT</pubDate>
    <dc:creator>sifatnabil</dc:creator>
    <dc:date>2015-04-02T03:57:25Z</dc:date>
    <item>
      <title>3M rolling average for data less than 3 months old</title>
      <link>https://community.qlik.com/t5/QlikView/3M-rolling-average-for-data-less-than-3-months-old/m-p/840519#M295382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 3M (or 12 week) rolling average in a &lt;STRONG style="text-decoration: underline;"&gt;text box&lt;/STRONG&gt;, but it doesn't work for data less than 3 months old because it always averages the last 3 months even if the product was only launched 1 month ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. this is the formula I use in a texbox:&lt;/P&gt;&lt;P&gt;sum([REVENUE])-(Sum({&amp;lt;[CALENDAR DATE]={'&amp;gt;=$(=MonthStart(Max([CALENDAR DATE]), -2))&amp;lt;=$(=MonthEnd(Max([CALENDAR DATE])))'}&amp;gt;}&lt;/P&gt;&lt;P&gt;[REVENUE])/(3))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;[CALENDAR DATE]={'&amp;gt;=$(=MonthStart(Max([CALENDAR DATE]), -2))&amp;lt;=$(=MonthEnd(Max([CALENDAR DATE])))'}&amp;gt;}&lt;/P&gt;&lt;P&gt;[REVENUE])/(3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keeps taking the last 3 months even if data does not exist for that product (i.e. assumes zero revenue for months where the product was not launched). This messes up the 3M average. What's the way around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 03:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/3M-rolling-average-for-data-less-than-3-months-old/m-p/840519#M295382</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2015-04-02T03:57:25Z</dc:date>
    </item>
  </channel>
</rss>

