<?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 Rolling 3 Months average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328945#M496780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;don't understand wath u exactly want .... rolling 3 month for me is see only 3 month...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to see all chanche expression with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;YearMonth ={"&amp;gt;=$(=Date(addmonths(Min(YearMonth), -0), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), 0),&amp;nbsp; 'MMM-YY'))"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that wath u want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2011 10:04:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-11-18T10:04:58Z</dc:date>
    <item>
      <title>Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328940#M496775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Folk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirment in which i have to show rolling 3 Months Average in a Bar chart.&lt;/P&gt;&lt;P&gt;Logic: For each month, average should be of previous 3 months including that month.&lt;/P&gt;&lt;P&gt;Example: If Month is Feb-11, then average against Feb in Bar chart should be of Dec-10, Jan-11 and Feb-11.&lt;/P&gt;&lt;P&gt;Likewise it should happen for every month in the Chart in dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the logic which I am trying to implement:&lt;/P&gt;&lt;P&gt;=(sum([Total Doses])&lt;/P&gt;&lt;P&gt;+Sum({&amp;lt;YearMonth ={"$(=Date(addmonths(YearMonth, -2),'MMM-YY'))"}&amp;gt;}[Total Doses])&lt;/P&gt;&lt;P&gt;+Sum({&amp;lt;YearMonth ={"$(=(addmonths(Max(YearMonth), -1)))"}&amp;gt;}[Total Doses]))/3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping for solutions....!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 08:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328940#M496775</guid>
      <dc:creator />
      <dc:date>2011-11-18T08:49:57Z</dc:date>
    </item>
    <item>
      <title>Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328941#M496776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;YearMonth={"&amp;gt;=$(=Date(addmonths(YearMonth, -2),'MMM-YY'))&lt;/P&gt;&lt;P&gt;&amp;lt;=$(=Date(addmonths(YearMonth, 0),'MMM-YY'))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;[Total Doses])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;YearMonth={"&amp;gt;=$(=Date(addmonths(max(YearMonth), -2),'MMM-YY'))&lt;/P&gt;&lt;P&gt;&amp;lt;=$(=Date(addmonths(max(YearMonth), 0),'MMM-YY'))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;[Total Doses])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 08:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328941#M496776</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-11-18T08:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328942#M496777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunil for your reply.&lt;/P&gt;&lt;P&gt;I have tried the formula given by you, but unfortunately its again not serving the purpose.&lt;/P&gt;&lt;P&gt;In the dimension all the months should be visible without any selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that formula, with no selection, no data is there in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The moment I am clicking on some month, its showing 3 rolling months in the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your reference I have attached a dummy app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 09:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328942#M496777</guid>
      <dc:creator />
      <dc:date>2011-11-18T09:19:23Z</dc:date>
    </item>
    <item>
      <title>Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328943#M496778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;use this in your attached app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;YearMonth ={"&amp;gt;=$(=Date(addmonths(Max(YearMonth), -2), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), 0),&amp;nbsp; 'MMM-YY'))"} &amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 09:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328943#M496778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T09:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328944#M496779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks alfasierra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this formula I am getting 3 Rolling months of Max(YearMonth) only .&lt;/P&gt;&lt;P&gt;Which means, with no selection I am only getting 3 values in dimension.&lt;/P&gt;&lt;P&gt;But all Values shouls come in Dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 09:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328944#M496779</guid>
      <dc:creator />
      <dc:date>2011-11-18T09:44:01Z</dc:date>
    </item>
    <item>
      <title>Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328945#M496780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;don't understand wath u exactly want .... rolling 3 month for me is see only 3 month...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to see all chanche expression with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;YearMonth ={"&amp;gt;=$(=Date(addmonths(Min(YearMonth), -0), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), 0),&amp;nbsp; 'MMM-YY'))"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that wath u want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 10:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328945#M496780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T10:04:58Z</dc:date>
    </item>
    <item>
      <title>Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328946#M496781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;YearMonth ={"&amp;gt;=$(=Date(addmonths(Min(YearMonth)), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(YearMonth), 0),&amp;nbsp; 'MMM-YY'))"} &amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 10:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328946#M496781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T10:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328947#M496782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Just check the attached file.&lt;/P&gt;&lt;P&gt;I hope it would&amp;nbsp; be clear to you then what I am exactly looking for...!!!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 10:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328947#M496782</guid>
      <dc:creator />
      <dc:date>2011-11-18T10:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328948#M496783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this situation , what i always do is that: add a field named 'Last3MonthsAvg' in the Fact table. This field represents the average sales of last 3 months for the smallest dimensions. In the chart, you sum the values of this field.&lt;/P&gt;&lt;P&gt;i made a test qv file in the attachment and it works.&lt;/P&gt;&lt;P&gt;This is what i do , anybody have other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;zhou &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 08:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328948#M496783</guid>
      <dc:creator />
      <dc:date>2013-10-18T08:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328949#M496784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using month as a dimension and you want 3-month rolling averages then set analysis alone won't suffice. See this document for an explanation and solutions: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; text-decoration: underline;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 08:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328949#M496784</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-18T08:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 Months average</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328950#M496785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There would be several ways, one (in the script) is like attached sample. PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 08:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-Months-average/m-p/328950#M496785</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-18T08:48:12Z</dc:date>
    </item>
  </channel>
</rss>

