<?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 month sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-month-sales/m-p/1002592#M965928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;follow these thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/143594"&gt;Aggregate Average?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/70711"&gt;Aggr Function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try understanding the way aggr() function works follow the reference manual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Oct 2015 06:22:26 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2015-10-06T06:22:26Z</dc:date>
    <item>
      <title>Average month sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-month-sales/m-p/1002591#M965927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="j-search-result-summary" style="margin: 0 0 3px; font-size: 22px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;to calculate &lt;EM class="jive-hilite" style="font-weight: bold; font-family: inherit; background-color: #ffffcd;"&gt;average&lt;/EM&gt; of period sum sales amount. i'm looking for some examples and i've&amp;nbsp; found agg but it is not working properly.my script have a year and month field, I select a month of September then I want a past 09 month totals average sales.please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:18:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-month-sales/m-p/1002591#M965927</guid>
      <dc:creator>sagaraperera</dc:creator>
      <dc:date>2015-10-06T06:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Average month sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-month-sales/m-p/1002592#M965928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;follow these thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/143594"&gt;Aggregate Average?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/70711"&gt;Aggr Function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try understanding the way aggr() function works follow the reference manual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-month-sales/m-p/1002592#M965928</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-10-06T06:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Average month sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-month-sales/m-p/1002593#M965929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a field InvoiceMonthYear as below in your script&lt;/P&gt;&lt;P&gt;Date(MonthStart(InvoiceDate),'MMM-YY') as InvoiceMonthYear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use InvoiceMonthYear field in Listbox filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg(Aggr(SUM({&amp;lt;InvoiceYear=, InvoiceMonth=, InvoiceQuarter=,&amp;nbsp; InvoiceDate = {"&amp;gt;=$(=MonthStart(Max(InvoiceMonthYear),-9))&amp;lt;=$(=MonthEnd(Max(InvoiceMonthYear),-1))"}&amp;gt;}Sales),InvoiceMonthYear))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression will give you Avg Sales per Last 9 months..&lt;/P&gt;&lt;P&gt;if you select Oct-15, it will give you Avg sales for Jan-15 to Sep-15. &lt;/P&gt;&lt;P&gt;But if you want sales for Feb-15 to Oct-15, use below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Avg(Aggr(SUM({&amp;lt;InvoiceYear=, InvoiceMonth=, InvoiceQuarter=,&amp;nbsp; InvoiceDate = {"&amp;gt;=$(=MonthStart(Max(InvoiceMonthYear),-8))&amp;lt;=$(=MonthEnd(Max(InvoiceMonthYear),0))"}&amp;gt;}Sales),InvoiceMonthYear))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Change field names accordingly...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-month-sales/m-p/1002593#M965929</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-10-06T06:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Average month sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-month-sales/m-p/1002594#M965930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg(Aggr(Sum (Sales), Year, Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 09:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-month-sales/m-p/1002594#M965930</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-10-06T09:30:02Z</dc:date>
    </item>
  </channel>
</rss>

