<?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: My average in Pivot Table is not correct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264673#M398520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the data you posted, both a simple average and my average of averages formula (since there's only a single average) create the same value in QlikView, 01:57. If you can post data that duplicates the problem, perhaps I can help further. But without being able to duplicate your problem, it's very hard to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149905_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 17:05:55 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2017-01-18T17:05:55Z</dc:date>
    <item>
      <title>My average in Pivot Table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264669#M398516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this example table below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="278" style="width: 454px; height: 283px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="86"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="88"&gt;Start Date/Time&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="88"&gt;Category&lt;/TD&gt;&lt;TD class="xl71" style="border-left: none;" width="63"&gt;MTR&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="79"&gt;Duration&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;28-Jan-16 19:19&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;AR&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;02:13&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2:13:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;25-Jan-16 09:12&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AR&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;00:54&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;0:54:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;14-Jan-16 09:31&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AR&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;00:40&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0:40:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;13-Jan-16 23:06&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AR&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;01:04&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1:04:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;12-Jan-16 22:45&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AR&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01:17&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1:17:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;12-Jan-16 10:01&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AR&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;01:12&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1:12:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;07-Jan-16 22:25&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AR&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01:06&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1:06:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;03-Jan-16 03:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AR&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;07:15&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;7:15:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you take this table in Excel and do an average of MTR, the average is 01:57. In Qlikview my dimensions are category and MonthYear. My expression is Avg(MTTR) and I also tried (Sum(MTTR))/(Count(MTTR)) and it comes to 01:53. That is a difference of 4 minutes. All of my averages are off 3-7 minutes.&amp;nbsp; I tried Aggr(Avg(MTTR),category) and came up with the same number. I don't like that though because when I remove 2016, it does an aggregation of all years and I want year over year or month over month depending on the chart. What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 00:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264669#M398516</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2017-01-18T00:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: My average in Pivot Table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264670#M398517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The column name is actually MTTR, above I typed it in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 01:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264670#M398517</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2017-01-18T01:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: My average in Pivot Table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264671#M398518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you want the average of the averages instead of just the overall average, you'd need to list all your dimensions in the aggr, not just one of them. So I believe you want this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;avg(aggr(avg([MTTR]),[Category],[MonthYear]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though if you have both year over year and month over month for this data, those two charts are likely to have different average of averages. Are you sure you want the average of averages and not just the average?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 01:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264671#M398518</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2017-01-18T01:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: My average in Pivot Table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264672#M398519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That formula is still giving me the 1:53, which is not correct. it needs to be 1:57. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264672#M398519</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2017-01-18T14:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: My average in Pivot Table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264673#M398520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the data you posted, both a simple average and my average of averages formula (since there's only a single average) create the same value in QlikView, 01:57. If you can post data that duplicates the problem, perhaps I can help further. But without being able to duplicate your problem, it's very hard to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149905_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 17:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264673#M398520</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2017-01-18T17:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: My average in Pivot Table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264674#M398521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found my problem. It is the little things behind the scenes that will always get you. In my load statement, I have a join and that was multiplying my distinct ID. So, of course, my average was not providing the correct answer. Fixed the join (just created it as a separate table instead of a join) and that fixed that. An entire day on a little thing behind the scenes.....&lt;/P&gt;&lt;P&gt;I really wasn't trying to take an average of an average. My first was avg(MTTR), but that didn't work, nor anything else. I was grasping at straws. Now avg(MTTR) works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 23:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264674#M398521</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2017-01-18T23:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: My average in Pivot Table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264675#M398522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you figured it out. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 23:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-average-in-Pivot-Table-is-not-correct/m-p/1264675#M398522</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2017-01-18T23:50:34Z</dc:date>
    </item>
  </channel>
</rss>

