<?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: Calculating average upto the month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355464#M131943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Here's the complete solution for your problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it's helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2012 09:21:05 GMT</pubDate>
    <dc:creator>jvitantonio</dc:creator>
    <dc:date>2012-03-19T09:21:05Z</dc:date>
    <item>
      <title>Calculating average upto the month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355461#M131940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please find the attached excel book below. It contains two table, left one is the detailed data by year, month, day. and the right one is the required output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need an idea for how to write a script or an expression in the chart that will calculate the average by month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 184px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" width="36"&gt;Year&lt;/TD&gt;&lt;TD class="xl22" width="46"&gt;Month&lt;/TD&gt;&lt;TD class="xl22" width="42"&gt;Sum&lt;/TD&gt;&lt;TD class="xl22" width="60"&gt;Average&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2012&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;14923&lt;/TD&gt;&lt;TD align="right" class="xl23"&gt;14923.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2012&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;15639&lt;/TD&gt;&lt;TD align="right" class="xl23"&gt;15281.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2012&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;16094&lt;/TD&gt;&lt;TD align="right" class="xl23"&gt;15552.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above table the average value is calculated like For month Jan, avg is 14923/1=14923, For feb avg is 14923+15639/2=15281 and so on. We can call it as accumulated avg by month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In qlikview, I struggling to calculate this avg value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 01:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355461#M131940</guid>
      <dc:creator />
      <dc:date>2012-03-16T01:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average upto the month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355462#M131941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this....showing correct Ave for 2012 but for year change it again restarts....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;found the attached QVW file&lt;/P&gt;&lt;P&gt;hope it help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Ave.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/12184_Ave.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 04:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355462#M131941</guid>
      <dc:creator />
      <dc:date>2012-03-16T04:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average upto the month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355463#M131942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u get better solution then this...plz share..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 04:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355463#M131942</guid>
      <dc:creator />
      <dc:date>2012-03-19T04:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average upto the month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355464#M131943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Here's the complete solution for your problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it's helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 09:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355464#M131943</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-03-19T09:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average upto the month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355465#M131944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for trying. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I've found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In expression, above(Value, 0, 12) can be used to calculate the average of last 12 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; After that it can be aggregated by year and month using aggr method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks to all of you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 11:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-average-upto-the-month/m-p/355465#M131944</guid>
      <dc:creator />
      <dc:date>2012-03-22T11:02:44Z</dc:date>
    </item>
  </channel>
</rss>

