<?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: X Month Average Quantity in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829380#M291938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha right &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2015 14:58:37 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-07-20T14:58:37Z</dc:date>
    <item>
      <title>X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829375#M291933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help writing an expression. I can get what I want using brute force, but I think there must be a cleaner, more efficient way. Please see attached. I'm trying to include a column value in my chart which represents the X Month Average Quantity -- i.e. the average quantity over the last X months from the date selected, where X is the value given by the slider. The average should start with the month/year selected. So if 201505 is selected, and 3 is selected from the slider, then it should average the quantities from 201505, 201504 and 201503.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for taking a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 14:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829375#M291933</guid>
      <dc:creator />
      <dc:date>2015-07-20T14:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829376#M291934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this one out. Did not check the numbers deliberately but should be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically you need to use set analysis and variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 14:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829376#M291934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-20T14:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829377#M291935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use set analysis in combination with dollar sign expansion for that (see help). Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg({&amp;lt;FinMonth={"&amp;gt;$(=FinMonth-NoMonths)&amp;lt;=$(=Max(FinMonth))"}&amp;gt;} Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 14:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829377#M291935</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-07-20T14:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829378#M291936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({&amp;lt;FinMonth = {"$(='&amp;lt;=' &amp;amp; Max(FinMonth) &amp;amp; '&amp;gt;' &amp;amp; (Max(FinMonth)-Only(NoMonths)))"}&amp;gt;}Qty)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 14:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829378#M291936</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-20T14:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829379#M291937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to see you did the same (I edited my answer), but I think the &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; '&amp;gt;=' &amp;amp; (Max( should be &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; '&amp;gt;' &amp;amp; (Max(F ?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 14:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829379#M291937</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-07-20T14:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829380#M291938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha right &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 14:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829380#M291938</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-20T14:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829381#M291939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With all respect, I think you are missing a twist in year changes &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; Finmonth should be handled as date instead of number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 14:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829381#M291939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-20T14:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829382#M291940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, too hasty in my reply and not thinking past the example given&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 15:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829382#M291940</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-07-20T15:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829383#M291941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once again agreed &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I feel I should just delete my response so that I don't look dumb &lt;/SPAN&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh well, I am going to leave it still so that other people learn to not make the same mistake I did.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 15:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829383#M291941</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-20T15:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829384#M291942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone. These are good ideas, but, as mentioned, it breaks when the year changes. My "actual" solution has a corresponding real date value that I can use -- so 201505 has a corresponding field called EndOfMonthDate with value '5/31/2015 12:00:00 AM'. Here's an updated script excerpt of the MonthlyQty table. Hopefully I formatted the dates correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthlyQty:&lt;BR /&gt;LOAD * INLINE [Thing, FinMonth, EndOfMonthDate, Qty&lt;BR /&gt;A, 201507, '7/31/2015',20&lt;BR /&gt;A, 201506, '6/30/2015',20&lt;BR /&gt;A, 201505, '5/31/2015',18&lt;BR /&gt;A, 201504, '4/30/2015',16&lt;BR /&gt;A, 201503, '3/31/2015',12&lt;BR /&gt;A, 201502, '2/28/2015',30&lt;BR /&gt;A, 201501, '1/31/2015',27&lt;BR /&gt;A, 201412, '12/31/2014',25&lt;BR /&gt;B, 201507, '7/31/2015',400&lt;BR /&gt;B, 201506, '6/30/2015',420&lt;BR /&gt;B, 201505, '5/31/2015',440&lt;BR /&gt;B, 201504, '4/30/2015',380&lt;BR /&gt;B, 201503, '3/31/2015',327&lt;BR /&gt;B, 201502, '2/28/2015',315&lt;BR /&gt;B, 201501, '1/31/2015',290&lt;BR /&gt;B, 201412, '12/31/2014',0&lt;BR /&gt;C, 201507, '7/31/2015',7&lt;BR /&gt;C, 201506, '6/30/2015',6&lt;BR /&gt;C, 201505, '5/31/2015',6&lt;BR /&gt;C, 201504, '4/30/2015',6&lt;BR /&gt;C, 201503, '3/31/2015',6&lt;BR /&gt;C, 201502, '2/28/2015',6&lt;BR /&gt;C, 201501, '1/31/2015',6&lt;BR /&gt;C, 201412, '12/31/2014',6&lt;BR /&gt;D, 201507, '7/31/2015',100&lt;BR /&gt;D, 201506, '6/30/2015',131&lt;BR /&gt;D, 201505, '5/31/2015',131&lt;BR /&gt;D, 201504, '4/30/2015',140&lt;BR /&gt;D, 201503, '3/31/2015',141&lt;BR /&gt;D, 201502, '2/28/2015',141&lt;BR /&gt;D, 201501, '1/31/2015',141&lt;BR /&gt;D, 201412, '12/31/2014',128&lt;BR /&gt;E, 201507, '7/31/2015',0&lt;BR /&gt;E, 201506, '6/30/2015',0&lt;BR /&gt;E, 201505, '5/31/2015',1&lt;BR /&gt;E, 201504, '4/30/2015',1&lt;BR /&gt;E, 201503, '3/31/2015',3&lt;BR /&gt;E, 201502, '2/28/2015',5&lt;BR /&gt;E, 201501, '1/31/2015',5&lt;BR /&gt;E, 201412, '12/31/2014',3&lt;BR /&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 15:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829384#M291942</guid>
      <dc:creator />
      <dc:date>2015-07-20T15:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829385#M291943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MonthlyQty:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(EndOfMonthDate) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thing, FinMonth, EndOfMonthDate, Qty&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 201507, '7/31/2015',20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 201506, '6/30/2015',20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 201505, '5/30/2015',18&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 201504, '4/30/2015',16&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 201503, '3/31/2015',12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 201502, '2/28/2015',30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 201501, '1/31/2015',27&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 201412, '12/31/2014',25&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 201507, '7/31/2015',400&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 201506, '6/30/2015',420&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 201505, '5/30/2015',440&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 201504, '4/30/2015',380&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 201503, '3/31/2015',327&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 201502, '2/28/2015',315&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 201501, '1/31/2015',290&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 201412, '12/31/2014',0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 201507, '7/31/2015',7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 201506, '6/30/2015',6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 201505, '5/30/2015',6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 201504, '4/30/2015',6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 201503, '3/31/2015',6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 201502, '2/28/2015',6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 201501, '1/31/2015',6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 201412, '12/31/2014',6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 201507, '7/31/2015',100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 201506, '6/30/2015',131&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 201505, '5/30/2015',131&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 201504, '4/30/2015',140&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 201503, '3/31/2015',141&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 201502, '2/28/2015',141&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 201501, '1/31/2015',141&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 201412, '12/31/2014',128&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E, 201507, '7/31/2015',0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E, 201506, '6/30/2015',0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E, 201505, '5/30/2015',1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E, 201504, '4/30/2015',1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E, 201503, '3/31/2015',3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E, 201502, '2/28/2015',5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E, 201501, '1/31/2015',5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E, 201412, '12/31/2014',3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({&amp;lt;Date = {"$(='&amp;gt;' &amp;amp; Date(AddMonths(Max(Date),-$(vVar))) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date)))"}, FinMonth = &amp;gt;}Qty)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Where vVar is a variable controlled by the slider object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 15:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829385#M291943</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-20T15:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829386#M291944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't delete. Good example of a set analysis without need to use variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 19:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829386#M291944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-20T19:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829387#M291945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That's closer, but still not quite right. For instance, if I choose 201502 with a 1 month average, it's still averaging over two months. I'm playing around with it to see if I can fix it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 14:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829387#M291945</guid>
      <dc:creator />
      <dc:date>2015-07-21T14:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829388#M291946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Date = {"$(=If($(vVar)= 1, '&amp;gt;' &amp;amp; Date(MonthStart(Max(Date))) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date)), '&amp;gt;' &amp;amp; Date(AddMonths(Max(Date),-($(vVar)-1))) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date))))"}, &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;FinMonth = &amp;gt;}Qty)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 14:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829388#M291946</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-21T14:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829389#M291947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check my post? I believe I hit it correctly even on the first post &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any problems on that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 14:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829389#M291947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-21T14:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829390#M291948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right. I missed it amidst some of the other posts, and it worked all along. I'll give it a try in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone for taking the time... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 14:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829390#M291948</guid>
      <dc:creator />
      <dc:date>2015-07-21T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829391#M291949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm curious though -- in your definition of vMaxMonth, is there any reason you use 2 for the day value? : &lt;/P&gt;&lt;P&gt;=date(makedate(left(max(FinMonth),4),right(max(FinMonth),&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;2&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; )),'YYYYMM') &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829391#M291949</guid>
      <dc:creator />
      <dc:date>2015-07-21T15:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829392#M291950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 is for right() function, not for makedate().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Serhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829392#M291950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-21T15:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: X Month Average Quantity</title>
      <link>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829393#M291951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course. I see that now. Thanks again. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/X-Month-Average-Quantity/m-p/829393#M291951</guid>
      <dc:creator />
      <dc:date>2015-07-21T15:34:21Z</dc:date>
    </item>
  </channel>
</rss>

