<?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 A tricky Question relate to aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/A-tricky-Question-relate-to-aggr/m-p/181149#M47284</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;I would like to do the following calculation with 2 fields (Date and Price)&lt;/P&gt;&lt;P&gt;e.g. Date Price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 290pt; border-collapse: collapse;" width="386"&gt;&lt;COLGROUP&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 70pt; mso-width-source: userset; mso-width-alt: 3401;" width="93" /&gt;&lt;COL style="width: 124pt; mso-width-source: userset; mso-width-alt: 6034;" width="165" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="background-color: transparent; width: 48pt; height: 15pt; border: windowtext 0.5pt solid;" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;Price&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 70pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="93"&gt;Average Price&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 124pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="165"&gt;Average of Average price&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Jul-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Aug-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1.5&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Sep-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Oct-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2.5&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Nov-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;5&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Dec-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;6&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3.5&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Jan-02&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;7&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Feb-02&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;8&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;4.5&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Mar-02&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;9&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: yellow; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3.25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;e.g. In Nov-01,&lt;/P&gt;&lt;P&gt;Average price = (1+2+3+4+5)/5 = 3&lt;/P&gt;&lt;P&gt;Average of Average price = (1.5+2+2.5+3)/4 = 2.25&lt;/P&gt;&lt;P&gt;My problem is that: I want one figure 3.25 (the yellow one). How can write the formula?&lt;/P&gt;&lt;P&gt;That is, instead of using a pivot table for so many row, I want to get the figure of 3.25 directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 172pt; border-collapse: collapse;" width="229"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 124pt; mso-width-source: userset; mso-width-alt: 6034;" width="165" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="background-color: transparent; width: 48pt; height: 15pt; border: windowtext 0.5pt solid;" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 124pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="165"&gt;Average of Average price&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl66" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Mar-02&lt;/TD&gt;&lt;TD class="xl67" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: yellow; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3.25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any thought?&lt;/P&gt;&lt;P&gt;Or, it will be great if there is anyone can help to tell me:&lt;/P&gt;&lt;P&gt;In Script: How can I get the sum/avg/stdev of increasing time periods?&lt;/P&gt;&lt;P&gt;That, in Nov 01, I get the sum of price from the beginning up to Nov 01 only (Dec 01 data existing, but I don't want to include it or any data after that date)&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Nov 2010 18:21:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-10T18:21:32Z</dc:date>
    <item>
      <title>A tricky Question relate to aggr</title>
      <link>https://community.qlik.com/t5/QlikView/A-tricky-Question-relate-to-aggr/m-p/181149#M47284</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;I would like to do the following calculation with 2 fields (Date and Price)&lt;/P&gt;&lt;P&gt;e.g. Date Price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 290pt; border-collapse: collapse;" width="386"&gt;&lt;COLGROUP&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 70pt; mso-width-source: userset; mso-width-alt: 3401;" width="93" /&gt;&lt;COL style="width: 124pt; mso-width-source: userset; mso-width-alt: 6034;" width="165" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="background-color: transparent; width: 48pt; height: 15pt; border: windowtext 0.5pt solid;" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 48pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;Price&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 70pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="93"&gt;Average Price&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 124pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="165"&gt;Average of Average price&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Jul-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Aug-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1.5&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Sep-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Oct-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2.5&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Nov-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;5&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Dec-01&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;6&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3.5&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Jan-02&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;7&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Feb-02&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;8&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;4.5&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl64" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Mar-02&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;9&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: yellow; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3.25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;e.g. In Nov-01,&lt;/P&gt;&lt;P&gt;Average price = (1+2+3+4+5)/5 = 3&lt;/P&gt;&lt;P&gt;Average of Average price = (1.5+2+2.5+3)/4 = 2.25&lt;/P&gt;&lt;P&gt;My problem is that: I want one figure 3.25 (the yellow one). How can write the formula?&lt;/P&gt;&lt;P&gt;That is, instead of using a pivot table for so many row, I want to get the figure of 3.25 directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 172pt; border-collapse: collapse;" width="229"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 124pt; mso-width-source: userset; mso-width-alt: 6034;" width="165" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="background-color: transparent; width: 48pt; height: 15pt; border: windowtext 0.5pt solid;" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 124pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="165"&gt;Average of Average price&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl66" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 15pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;Mar-02&lt;/TD&gt;&lt;TD class="xl67" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: yellow; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3.25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any thought?&lt;/P&gt;&lt;P&gt;Or, it will be great if there is anyone can help to tell me:&lt;/P&gt;&lt;P&gt;In Script: How can I get the sum/avg/stdev of increasing time periods?&lt;/P&gt;&lt;P&gt;That, in Nov 01, I get the sum of price from the beginning up to Nov 01 only (Dec 01 data existing, but I don't want to include it or any data after that date)&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 18:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-tricky-Question-relate-to-aggr/m-p/181149#M47284</guid>
      <dc:creator />
      <dc:date>2010-11-10T18:21:32Z</dc:date>
    </item>
  </channel>
</rss>

