<?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: Average of the previous three months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1638919#M47638</link>
    <description>&lt;P&gt;Hi - unfortunately that did not work.&lt;/P&gt;&lt;P&gt;Example - if I select the following months:&lt;/P&gt;&lt;P&gt;Feb 2016 : Quantity Sold 3,157&lt;/P&gt;&lt;P&gt;May 2016 : Quantity Sold 11,379&lt;/P&gt;&lt;P&gt;April 2016 :Quantity Sold 11,609&lt;/P&gt;&lt;P&gt;The three month average should equal = 8,715&lt;/P&gt;&lt;P&gt;It is displaying: 3.25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thoughts ?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 11:31:53 GMT</pubDate>
    <dc:creator>jerryr125</dc:creator>
    <dc:date>2019-10-23T11:31:53Z</dc:date>
    <item>
      <title>Average of the previous three months</title>
      <link>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1638717#M47620</link>
      <description>&lt;P&gt;Hi -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have quantity data. I would like to do the following once a month/year is selected (filtered) :&lt;/P&gt;&lt;P&gt;- Take an average of that month and the previous three months&lt;/P&gt;&lt;P&gt;- Display that value in a KPI&lt;/P&gt;&lt;P&gt;I tried this and no luck:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg({$&amp;lt;[SalesDate.autoCalendar.YearMonth]={"&amp;gt;$(=AddMonths(Max([SalesDate.autoCalendar.YearMonth]),-3,1))&amp;lt;=$(=Max([SalesDate.autoCalendar.YearMonth]))"}&amp;gt;}QuantitySold)&lt;/P&gt;&lt;P&gt;thoughts ? Jerry&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 07:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1638717#M47620</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2019-10-23T07:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Average of the previous three months</title>
      <link>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1638777#M47625</link>
      <description>&lt;P&gt;I would like to use a Date field.&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;[&lt;SPAN&gt;SalesDate.autoCalendar.&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;]={"&amp;gt;$(=MonthStart(AddMonths(Max([&lt;SPAN&gt;SalesDate.autoCalendar.&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;]),-3)))&amp;lt;=$(=Max([&lt;SPAN&gt;SalesDate.autoCalendar.&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;]))"}, [&lt;SPAN&gt;SalesDate.autoCalendar.&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;]=, [&lt;SPAN&gt;SalesDate.autoCalendar.&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Month&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;]=&amp;gt;}[&lt;SPAN&gt;QuantitySold&lt;/SPAN&gt;])&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 08:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1638777#M47625</guid>
      <dc:creator>marpet</dc:creator>
      <dc:date>2019-10-23T08:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Average of the previous three months</title>
      <link>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1638919#M47638</link>
      <description>&lt;P&gt;Hi - unfortunately that did not work.&lt;/P&gt;&lt;P&gt;Example - if I select the following months:&lt;/P&gt;&lt;P&gt;Feb 2016 : Quantity Sold 3,157&lt;/P&gt;&lt;P&gt;May 2016 : Quantity Sold 11,379&lt;/P&gt;&lt;P&gt;April 2016 :Quantity Sold 11,609&lt;/P&gt;&lt;P&gt;The three month average should equal = 8,715&lt;/P&gt;&lt;P&gt;It is displaying: 3.25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thoughts ?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 11:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1638919#M47638</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2019-10-23T11:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Average of the previous three months</title>
      <link>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1639094#M47649</link>
      <description>&lt;P&gt;Hi I tried this expression as well.&lt;/P&gt;&lt;P&gt;It seems to be pulling the correct timeframe BUT not the displaying the average for the last three months (by month).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts ? Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg({$&amp;lt;[SalesDate.autoCalendar.YearMonth]={"&amp;gt;$(=AddMonths(Max([SalesDate.autoCalendar.YearMonth]),-3,1))&amp;lt;=$(=AddMonths(Max([SalesDate.autoCalendar.YearMonth]),1,1))"}&amp;gt;}QuantitySold)&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 16:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1639094#M47649</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2019-10-23T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Average of the previous three months</title>
      <link>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1639147#M47650</link>
      <description>&lt;P&gt;this does the trick :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Sum({$&amp;lt;[SalesDate]={"&amp;gt;=$(=AddMonths(Max([SalesDate.autoCalendar.YearMonth]),-2,1))&amp;lt;$(=AddMonths(Max([SalesDate.autoCalendar.YearMonth]),1,1))"}&amp;gt;}QuantitySold))/3&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 17:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-of-the-previous-three-months/m-p/1639147#M47650</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2019-10-23T17:58:55Z</dc:date>
    </item>
  </channel>
</rss>

