<?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 Average instead of Partial sum table chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993901#M962706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get the average of an expression instead of a subtotal?&lt;/P&gt;&lt;P&gt;I can add the subtotal in my chart, by using the 'Show partial sums' option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/102202_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now need the average. My table is the following (please find it below)&lt;BR /&gt;*dimension 1 = initials of employees&lt;BR /&gt;*dimension 2 = date&lt;BR /&gt;*dimension 3 = day (za = saturday)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is a count of invoices they made that particular month [Count (DISTINCT Invoice)]&lt;BR /&gt;E.g. JCE made 14 invoices (2+3+4+5) in January.&lt;BR /&gt;I now want to add a line between JCE and KE that shows&lt;STRONG&gt; the average amount of invoices &lt;/STRONG&gt;made:&lt;/P&gt;&lt;P&gt;(2+3+4+5)/4 days worked = 3,5invoices/day&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102201_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 09:54:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-16T09:54:38Z</dc:date>
    <item>
      <title>Average instead of Partial sum table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993901#M962706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get the average of an expression instead of a subtotal?&lt;/P&gt;&lt;P&gt;I can add the subtotal in my chart, by using the 'Show partial sums' option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/102202_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now need the average. My table is the following (please find it below)&lt;BR /&gt;*dimension 1 = initials of employees&lt;BR /&gt;*dimension 2 = date&lt;BR /&gt;*dimension 3 = day (za = saturday)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is a count of invoices they made that particular month [Count (DISTINCT Invoice)]&lt;BR /&gt;E.g. JCE made 14 invoices (2+3+4+5) in January.&lt;BR /&gt;I now want to add a line between JCE and KE that shows&lt;STRONG&gt; the average amount of invoices &lt;/STRONG&gt;made:&lt;/P&gt;&lt;P&gt;(2+3+4+5)/4 days worked = 3,5invoices/day&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102201_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 09:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993901#M962706</guid>
      <dc:creator />
      <dc:date>2015-10-16T09:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Average instead of Partial sum table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993902#M962707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if this helps: &lt;A href="https://community.qlik.com/message/268454"&gt;Re: Average instead of sum in pivot table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 09:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993902#M962707</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-10-16T09:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Average instead of Partial sum table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993903#M962708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use&lt;/P&gt;&lt;P&gt;&amp;nbsp; Count(distinct Invoice) / Count( distinct Datum)&lt;/P&gt;&lt;P&gt;you will get what you want, both in the individual records and on the subtotal line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, I would define my dimensions in the script. It will be faster, and easier to read (=easier to understand when you look at them i 6 months.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also &lt;A href="https://community.qlik.com/qlik-blogpost/3208"&gt;Average – Which average?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 10:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993903#M962708</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-10-16T10:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Average instead of Partial sum table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993904#M962709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could have been the answer, but something really funny happens:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102212_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My original expression was [Count (DISTINCT Invoice)]&lt;/P&gt;&lt;P&gt;Instead I am now using&lt;BR /&gt;=avg(aggr(Count(DISTINCT Invoice),INITIALEN,Datum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3invoices/4days =/= 0,60&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 10:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993904#M962709</guid>
      <dc:creator />
      <dc:date>2015-10-16T10:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Average instead of Partial sum table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993905#M962710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(aggr(max(Invoice),INITIALEN,Datum)) as you need take the max of each date.. this might works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 11:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-instead-of-Partial-sum-table-chart/m-p/993905#M962710</guid>
      <dc:creator>SreeniJD</dc:creator>
      <dc:date>2015-10-16T11:01:35Z</dc:date>
    </item>
  </channel>
</rss>

