<?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 Daily Average based on cumulative sales line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239226#M89882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also use "rangeavg(above(sum(s),0,rowno()))" in the expression where "s " is daily sales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2009 15:23:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-12T15:23:18Z</dc:date>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239224#M89880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am need to recreate a chart I have in Excel that is based on the daily averages per quarter.&lt;/P&gt;&lt;P&gt;On work day 1 we did $100 in sales so daily average is $100, on work day 2, we did another $50 in sales so now we hve $150 divided by two so daily avg is $75 (150/2), etc... the line chart should show $100 Day 1 $75 day two and so onh. How do I do this in the expressions. I currently have a full accumlation by day by quarter to show Year over Year and Quarter of Quarter but I wnat to change this to the daiy average line chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 12:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239224#M89880</guid>
      <dc:creator />
      <dc:date>2009-11-12T12:20:24Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239225#M89881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I hope I got this correctly. Here's an example file on how to create this expression in a table. It should work in a line chart too for example but if you start putting the expression in a pivot table and doing a crosstable pivot it might break.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 14:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239225#M89881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-12T14:13:47Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239226#M89882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also use "rangeavg(above(sum(s),0,rowno()))" in the expression where "s " is daily sales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 15:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239226#M89882</guid>
      <dc:creator />
      <dc:date>2009-11-12T15:23:18Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239227#M89883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course! That's much better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 15:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239227#M89883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-12T15:28:23Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239228#M89884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for the assistance. I am having issues getting it to work, but am sure I will understand. First I need to know what the functions do. "Above" is not in the help files. Can you tell me its purpose?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 22:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239228#M89884</guid>
      <dc:creator />
      <dc:date>2009-11-12T22:52:32Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239229#M89885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's in there, but it's hidden under "chart inter record functions" since above is such a common word.&lt;/P&gt;&lt;H4 style="padding-left:30px;"&gt;above&lt;A id="above" name="above"&gt;&lt;/A&gt;( [ total ] &lt;EM&gt;expression&lt;/EM&gt; [ , &lt;EM&gt;offset&lt;/EM&gt; [&lt;EM&gt;,n&lt;/EM&gt; ]] )&lt;/H4&gt;&lt;P style="padding-left:30px;"&gt;Returns the value of &lt;EM&gt;expression&lt;/EM&gt; evaluated with the chart's dimension values as they appear on the row above the current row within a column segment in a table or, in the case of bitmap charts, in the chart's straight table equivalent (Actually all QlikView charts have a straight table equivalent with the exception of the pivot table which has a more complex structure.).&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;On the first row of a column segment a NULL value will be returned, as there is no row above this one.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;If the chart is one-dimensional or if the &lt;EM&gt;expression&lt;/EM&gt; is preceded by the &lt;STRONG&gt;total&lt;/STRONG&gt; qualifier, the current column segment is always equal to the entire column.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;If the table or table equivalent has multiple vertical dimensions, the current column segment will include only rows with the same values as the current row in all dimension columns except for the column showing the last dimension in the inter field sort order.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;The inter field sort order for pivot tables is defined simply by the order of the dimensions from left to right. For other chart types this can be manipulated in the &lt;STRONG&gt;Chart Properties: Sort&lt;/STRONG&gt; dialog.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Specifying an &lt;EM&gt;offset&lt;/EM&gt; greater than 1 lets you move the evaluation of &lt;EM&gt;expression&lt;/EM&gt; to rows further up the current row. A negative &lt;EM&gt;offset&lt;/EM&gt; number will actually make the &lt;STRONG&gt;above&lt;/STRONG&gt; function equivalent to a &lt;STRONG&gt;below&lt;/STRONG&gt; function with the corresponding positive &lt;EM&gt;offset&lt;/EM&gt; number. Specifying an &lt;EM&gt;offset&lt;/EM&gt; of 0 will evaluate the &lt;EM&gt;expression&lt;/EM&gt; on the current row. Recursive calls will return NULL.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;By specifying a third parameter &lt;EM&gt;n&lt;/EM&gt; greater than 1, the function will return not one but a range of &lt;EM&gt;n&lt;/EM&gt; values, one for each of &lt;EM&gt;n&lt;/EM&gt; table rows counting upwards from the original cell. In this form, the function can be used as an argument to any of the special &lt;A href="http://community.qlik.com/forums/QvenglChart_Range_functions.htm"&gt;range functions&lt;/A&gt;.&lt;/P&gt;&lt;H2 style="padding-left:30px;"&gt;Examples:&lt;/H2&gt;&lt;P class="hcp9" style="padding-left:30px;"&gt;&lt;STRONG&gt;sum( Sales ) / above&lt;/STRONG&gt;( sum( Sales ))&lt;/P&gt;&lt;P class="hcp9" style="padding-left:30px;"&gt;&lt;STRONG&gt;above&lt;/STRONG&gt;( sum( Sales ), 2 )&lt;/P&gt;&lt;P class="hcp9" style="padding-left:30px;"&gt;&lt;STRONG&gt;above&lt;/STRONG&gt;( total sum( Sales ))&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="hcp13" style="width:100%;" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="hcp1" style="width:34%;" valign="top" width="34%"&gt;&lt;P class="hcp6"&gt;&lt;STRONG&gt;rangeavg (above&lt;/STRONG&gt;(sum(x),1,3))&lt;/P&gt;&lt;/TD&gt;&lt;TD class="hcp1" style="width:66%;" valign="top" width="66%"&gt;&lt;P class="hcp6" style="padding-left:30px;"&gt;returns an average of the three results of the sum(x) function evaluated on the three rows immediately above the current row.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 01:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239229#M89885</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-11-13T01:34:29Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239230#M89886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Now, I am almost there but still not working correctly.&lt;/P&gt;&lt;P&gt;It is dividing the sales by the day # now using this formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(above(sum( [Total Booked ($)] ), 0, [Work Day #])) /[Work Day #]&lt;/P&gt;&lt;P&gt;But, it is dividing that DAY's sales and not the accumulation thru that day. When I change to Full Accumulation, the line chart does not work.&lt;/P&gt;&lt;P&gt;What I need is for the chart to accumulate the days sales each day till end of quarter and on each day, divide the accumulated sales by that Day #. Then reset the accumulation for the next quarter and start over so that I have a line for each day.&lt;/P&gt;&lt;P&gt;The X axis of my line chart is the Work Day # and each line represnts a quarter so I can compare quarter over quarter how we are doing on daily average. Example Q1 we were averaging 20k on day # 3 and on Q2 we were averaging 30k on day #3&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 01:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239230#M89886</guid>
      <dc:creator />
      <dc:date>2009-12-04T01:28:34Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239231#M89887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I change to full accumulation it does not reset for each new quarter, it just keeps accumulating the sales from the previous quarter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 01:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239231#M89887</guid>
      <dc:creator />
      <dc:date>2009-12-04T01:30:14Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239232#M89888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;EDIT: Seems like I had bad data - with a different selection and w/o total line the below works for a line chart as well.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I've tried the above and works well for using sum (straight table &amp;amp; line chart). What I try to achieve though is to calculate average prices ( Sum Revenue / Sum Quantity).&lt;/P&gt;&lt;P&gt;The following formula only works when I use a straight table though - a line chart shows the error message 'No Data to display'.&lt;/P&gt;&lt;P&gt;=(rangesum(above(Sum(REV_MEAS)/Sum(QTY), 0, rowno())) / rowno())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have accumulation turned OFF... Any Ideas? Thanks for your help!&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2010 15:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239232#M89888</guid>
      <dc:creator />
      <dc:date>2010-01-11T15:17:32Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239233#M89889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever figure out how to do this for a ine chart? I still have not been successful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 21:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239233#M89889</guid>
      <dc:creator />
      <dc:date>2010-04-26T21:12:42Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239234#M89890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;yes, with the help from John Witherspoon I managed to get it done, please have a look at this post:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/p/24315/92933.aspx#92933"&gt;http://community.qlik.com/forums/p/24315/92933.aspx#92933&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 08:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239234#M89890</guid>
      <dc:creator />
      <dc:date>2010-04-27T08:38:30Z</dc:date>
    </item>
    <item>
      <title>Daily Average based on cumulative sales line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239235#M89891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eureka!!! try now with a pivot table. There is not row number when you expand only an item. Add a couple of columns on the right, and see their behaviour.&lt;/P&gt;&lt;H4&gt;Dimensionality()&amp;amp; ' - ' &amp;amp; noofrows(Total) &amp;amp; ' - ' &amp;amp; rowno(Total)&lt;/H4&gt;&lt;H4&gt;Dimensionality()&amp;amp; ' - ' &amp;amp; noofrows() &amp;amp; ' - ' &amp;amp; rowno()&lt;/H4&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 11:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Average-based-on-cumulative-sales-line-chart/m-p/239235#M89891</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2010-04-27T11:27:30Z</dc:date>
    </item>
  </channel>
</rss>

