<?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: Running average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Running-average/m-p/203617#M60884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this expression&lt;/P&gt;&lt;P&gt;if(RowNo()=0,&lt;/P&gt;&lt;P&gt;RangeAvg(ABOVE(Avg(MyTestFee),0,Count(DISTINCT OrderDay))), RangeAvg(ABOVE(Avg(MyTestFee),0,RowNo())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 22:18:49 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-12-04T22:18:49Z</dc:date>
    <item>
      <title>Running average</title>
      <link>https://community.qlik.com/t5/QlikView/Running-average/m-p/203615#M60882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I have a question regarding running average. I have a table with Fees by OrderNum and OrderDate.&lt;/P&gt;&lt;P&gt;In the report, I want to see the data by Order Day (1, 2, etc.) and Avg fees and running average.&lt;/P&gt;&lt;P&gt;As you can see in the example below, I have 3 orders for 14th and average for this day 48.33 (45, 45 and 50). But Average of all orders from 10th to 14th is 46.25 but my running avg column shows (table 2 below) 45.83&lt;/P&gt;&lt;P&gt;How can I get the running average to calculate the average for individual orders till that day instead of taking average of "average fees by day"? How do I get 46.25 in the running average for 14th instead of 45.83? Any help you can provide to fix the expression for Running average would be greatly appreciated.&lt;/P&gt;&lt;P&gt;In my actual report, the date range is flexible, so it is not MTD or fixed range and we can have any number of days (1 to 31) in the list.&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 222pt; border-collapse: collapse;" width="294"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro 1pt solid; border-left: gainsboro 0.5pt solid; width: 74pt; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: whitesmoke;" width="98"&gt;&lt;P&gt;&lt;STRONG&gt;Order Day&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro 1pt solid; border-left: gainsboro; width: 74pt; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;" width="98"&gt;&lt;STRONG&gt;OrderNum&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-right: gainsboro 1pt solid; border-top: gainsboro 1pt solid; border-left: gainsboro; width: 74pt; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;" width="98"&gt;&lt;STRONG&gt;MyTestFee&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;9504820&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;9502894&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;9505264&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;13&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;9556549&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;13&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;9557471&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;9556755&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;9556967&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;14&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;9557448&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;55&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 215pt; border-collapse: collapse;" width="285"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;COL style="width: 67pt; mso-width-source: userset; mso-width-alt: 3254; mso-outline-parent: collapsed;" width="89" /&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="border-right: gainsboro 1pt solid; border-top: gainsboro 1pt solid; border-left: gainsboro 0.5pt solid; width: 74pt; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: whitesmoke;" width="98"&gt;&lt;STRONG&gt;Order Day&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="width: 67pt; background-color: white; border: gainsboro 0.5pt solid;" width="89"&gt;Avg Fee&lt;/TD&gt;&lt;TD class="xl66" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro 0.5pt solid; border-left: gainsboro; width: 74pt; border-bottom: gainsboro 0.5pt solid; background-color: white;" width="98"&gt;Running Avg&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl67" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45.00&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl67" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45.00&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl67" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;13&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45.00&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;45.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl67" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;14&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;48.33&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;&lt;STRONG&gt;45.83&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl69" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: whitesmoke;"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;"&gt;&lt;STRONG&gt;46.25&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&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;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;Archana.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2010 21:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-average/m-p/203615#M60882</guid>
      <dc:creator />
      <dc:date>2010-11-26T21:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Running average</title>
      <link>https://community.qlik.com/t5/QlikView/Running-average/m-p/203616#M60883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;added a new expression&amp;nbsp; &lt;/P&gt;&lt;P&gt;= &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MyTestFee&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OrderDay&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 21:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-average/m-p/203616#M60883</guid>
      <dc:creator />
      <dc:date>2012-12-04T21:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running average</title>
      <link>https://community.qlik.com/t5/QlikView/Running-average/m-p/203617#M60884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this expression&lt;/P&gt;&lt;P&gt;if(RowNo()=0,&lt;/P&gt;&lt;P&gt;RangeAvg(ABOVE(Avg(MyTestFee),0,Count(DISTINCT OrderDay))), RangeAvg(ABOVE(Avg(MyTestFee),0,RowNo())))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 22:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-average/m-p/203617#M60884</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-12-04T22:18:49Z</dc:date>
    </item>
  </channel>
</rss>

