<?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 Help with Running Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157322#M32851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please use Peek and Previous function in the script.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2009 21:06:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-13T21:06:24Z</dc:date>
    <item>
      <title>Help with Running Average</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157321#M32850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to QlikView and have an issue I would like help with. I have a simple production report setup as a straight table. The dimension is the Date, the first expression is the sum of volume produced that day and the second is the same expression but with full accumulation checked so that total volume will be accumulated. The third expression needs to be a running average of the total volume / # of days so far. so for example, it should look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 153pt; border-collapse: collapse;" width="203"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 29pt; mso-width-source: userset; mso-width-alt: 1389;" width="38" /&gt;&lt;COL style="width: 77pt; mso-width-source: userset; mso-width-alt: 3766;" width="103" /&gt;&lt;COL style="width: 26pt; mso-width-source: userset; mso-width-alt: 1243;" width="34" /&gt;&lt;COL style="width: 21pt; mso-width-source: userset; mso-width-alt: 1024;" width="28" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="width: 29pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="38"&gt;Date&lt;/TD&gt;&lt;TD style="width: 77pt; background-color: transparent; border: #ece9d8;" width="103"&gt;Daily Production&lt;/TD&gt;&lt;TD style="width: 26pt; background-color: transparent; border: #ece9d8;" width="34"&gt;MTD&lt;/TD&gt;&lt;TD style="width: 21pt; background-color: transparent; border: #ece9d8;" width="28"&gt;Avg&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl22" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;" num="39814"&gt;1-Jan&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl22" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;" num="39815"&gt;2-Jan&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;6&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;11&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;5.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl22" height="17" style="height: 12.75pt; background-color: transparent; border: #ece9d8;" num="39816"&gt;3-Jan&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;10&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;21&lt;/TD&gt;&lt;TD align="right" style="background-color: transparent; border: #ece9d8;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;as you can see, for 1-Jan the AVG is 5 divided by 1. For 2-Jan it's 11 divided by 2 and for 3-Jan it's 21 divided by 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the day() function to get the number of days to divide by, but I cannot figure out how to capture the total MTD volume on each row to create this average. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Elizabeth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 20:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157321#M32850</guid>
      <dc:creator />
      <dc:date>2009-08-13T20:57:53Z</dc:date>
    </item>
    <item>
      <title>Help with Running Average</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157322#M32851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please use Peek and Previous function in the script.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 21:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157322#M32851</guid>
      <dc:creator />
      <dc:date>2009-08-13T21:06:24Z</dc:date>
    </item>
    <item>
      <title>Help with Running Average</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157323#M32852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there anything that can be used within the chart expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 21:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157323#M32852</guid>
      <dc:creator />
      <dc:date>2009-08-13T21:12:39Z</dc:date>
    </item>
    <item>
      <title>Help with Running Average</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157324#M32853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi EPayne,&lt;/P&gt;&lt;P&gt;any relation to TPayne?? har har...&lt;/P&gt;&lt;P&gt;I would do this to get MTD Volume:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sum (total &amp;lt;FiscYear, Month&amp;gt; Volume)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Your formula may look a bit different depending on your table names for fiscal year, month, and volume. Let me know if you need more clarification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 21:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157324#M32853</guid>
      <dc:creator />
      <dc:date>2009-08-13T21:46:45Z</dc:date>
    </item>
    <item>
      <title>Help with Running Average</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157325#M32854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is one approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 03:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Running-Average/m-p/157325#M32854</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-14T03:01:13Z</dc:date>
    </item>
  </channel>
</rss>

