<?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: average but not avg() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554740#M207240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attaching your application with two options, one based on counting the number of months and the other using Dimensionallity().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2013 12:36:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-23T12:36:06Z</dc:date>
    <item>
      <title>average but not avg()</title>
      <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554733#M207233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I know avg is not that function I need, but I am not sure what is...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I have put all the details in my example file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Oli&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 11:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554733#M207233</guid>
      <dc:creator />
      <dc:date>2013-09-23T11:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: average but not avg()</title>
      <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554734#M207234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum([# Order line value]) / count( distinct [Inv Month])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 11:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554734#M207234</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-23T11:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: average but not avg()</title>
      <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554735#M207235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum([# Order line value])/Count (DISTINCT [Inv Month])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 11:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554735#M207235</guid>
      <dc:creator>kji</dc:creator>
      <dc:date>2013-09-23T11:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: average but not avg()</title>
      <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554736#M207236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum([# Order line value])/Count(TOTAL DISTINCT [Inv Month])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find the attached Qvw&lt;/P&gt;&lt;P&gt;its worked fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 12:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554736#M207236</guid>
      <dc:creator />
      <dc:date>2013-09-23T12:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: average but not avg()</title>
      <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554737#M207237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this gives the desired result, although I would try to remodel the data to avoid using DISTINCT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum([# Order line value]) / Count(DISTINCT [Inv Month])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 12:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554737#M207237</guid>
      <dc:creator>adamwilson</dc:creator>
      <dc:date>2013-09-23T12:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: average but not avg()</title>
      <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554738#M207238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i don't understand what u want clearly,do u want something like this?please check attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 12:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554738#M207238</guid>
      <dc:creator />
      <dc:date>2013-09-23T12:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: average but not avg()</title>
      <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554739#M207239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or put this in your expression field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg(aggr(sum([# Order line value]),[Inv Month]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 12:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554739#M207239</guid>
      <dc:creator />
      <dc:date>2013-09-23T12:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: average but not avg()</title>
      <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554740#M207240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attaching your application with two options, one based on counting the number of months and the other using Dimensionallity().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 12:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554740#M207240</guid>
      <dc:creator />
      <dc:date>2013-09-23T12:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: average but not avg()</title>
      <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554741#M207241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(RowNo() = 0 or IsNull(RowNo()),&amp;nbsp; Sum([# Order line value]) / Count( DISTINCT&lt;/P&gt;&lt;P&gt; [Inv Month]),&amp;nbsp; Sum([# Order line value]) / Count( [Inv Month]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 12:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554741#M207241</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-09-23T12:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: average but not avg()</title>
      <link>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554742#M207242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this expression should give you a cumulative sum of your [# Order Line Value] field. It should be simple to then calculate your average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;rangesum(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[# Order line value]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Inv Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Marcus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;--edited as I missed out the rangesum!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 13:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/average-but-not-avg/m-p/554742#M207242</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2013-09-23T13:10:26Z</dc:date>
    </item>
  </channel>
</rss>

