<?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: Pivot table - average value problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-average-value-problem/m-p/350251#M129779</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;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;EM&gt;=count(ID) /&amp;nbsp; avg(total&amp;lt;Names&amp;gt; aggr( count(id), Names, Dates))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2012 14:02:28 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-07-13T14:02:28Z</dc:date>
    <item>
      <title>Pivot table - average value problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-average-value-problem/m-p/350249#M129777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have an annoying problem with calculating average values in pivot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have a 2 dimensional pivot table,&amp;nbsp; horizontally is the Dates, and vertically is the Names&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Now, the expression is "count(ID)"&amp;nbsp; which lists then, for each name and date, how many "IDs" there are.&amp;nbsp; So far so good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Now, I have tried to replace the "count(ID)" with an expression which should compare the number of IDs with the average across time, but per name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;So, rephrase,&amp;nbsp; per "name", the expression should be count(ID) / { average(count(id)) across all dates, but not across all name}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have tried to do something like this: =avg(aggr(count(ID), Dates))&amp;nbsp; but it seems to fail.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 13:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-average-value-problem/m-p/350249#M129777</guid>
      <dc:creator>johanfo2</dc:creator>
      <dc:date>2012-07-13T13:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - average value problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-average-value-problem/m-p/350250#M129778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;STRONG&gt;presentation &lt;/STRONG&gt;tab and &lt;STRONG&gt;show partial sum&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 13:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-average-value-problem/m-p/350250#M129778</guid>
      <dc:creator />
      <dc:date>2012-07-13T13:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - average value problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-average-value-problem/m-p/350251#M129779</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;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;EM&gt;=count(ID) /&amp;nbsp; avg(total&amp;lt;Names&amp;gt; aggr( count(id), Names, Dates))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 14:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-average-value-problem/m-p/350251#M129779</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-13T14:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - average value problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-average-value-problem/m-p/350252#M129780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Outstanding!&amp;nbsp; In fact, I did try something similar based on reading the documentation.&amp;nbsp; Howver, I misinterpreted the "anglebrackets" to be "[" or "{", thus it failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 14:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-average-value-problem/m-p/350252#M129780</guid>
      <dc:creator>johanfo2</dc:creator>
      <dc:date>2012-07-13T14:07:19Z</dc:date>
    </item>
  </channel>
</rss>

