<?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 Average for Dynamic Range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-for-Dynamic-Range/m-p/805894#M1029026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am trying to get a monthly average of Sales Volume between two given dates with 12 months being the max number of months going back.&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>Fri, 13 Feb 2015 18:50:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-13T18:50:47Z</dc:date>
    <item>
      <title>Average for Dynamic Range</title>
      <link>https://community.qlik.com/t5/QlikView/Average-for-Dynamic-Range/m-p/805894#M1029026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am trying to get a monthly average of Sales Volume between two given dates with 12 months being the max number of months going back.&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>Fri, 13 Feb 2015 18:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-for-Dynamic-Range/m-p/805894#M1029026</guid>
      <dc:creator />
      <dc:date>2015-02-13T18:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Average for Dynamic Range</title>
      <link>https://community.qlik.com/t5/QlikView/Average-for-Dynamic-Range/m-p/805895#M1029028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use nested aggregation here (first accumulate monthly figures and then calculate the average.) You can do it using AGGR:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Sales),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthYear, ChartDim1, ChartDim2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify - I added ChartDim1 and 2 to signify your chart dimensions ( when you use this formula in the chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, just add your logic about the date range. If you use Set Analysis, make sure to repeat your SA conditions in both the "inner" and the "outer" aggregation functions - sum() and avg().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Oleg Troyansky&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Come and learn Set Analysis and Advanced Aggregation with me at &lt;STRONG&gt;www.masterssummit.com&lt;/STRONG&gt; - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 18:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-for-Dynamic-Range/m-p/805895#M1029028</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-13T18:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Average for Dynamic Range</title>
      <link>https://community.qlik.com/t5/QlikView/Average-for-Dynamic-Range/m-p/805896#M1029031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not familiar with aggregation funtions. I am looking for a monthly average of "Sales Volume" from a MaxMonth going back the number of months found in colmn8 within my table. If the value in column 8 is greater than 12 months i want it to default to 12.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 14:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-for-Dynamic-Range/m-p/805896#M1029031</guid>
      <dc:creator />
      <dc:date>2015-02-19T14:57:24Z</dc:date>
    </item>
  </channel>
</rss>

