<?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 Calculating Average Times in a Chart Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224530#M502841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, sounds good. My last suggestion by assuming what the table structure is like, I would try something like this:&lt;/P&gt;&lt;P&gt;avg(&lt;B&gt;aggr&lt;/B&gt;(&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;EndTime&lt;/B&gt; - &lt;B&gt;StartTime&lt;/B&gt;), &lt;B&gt;CaseID&lt;/B&gt;))&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Sep 2010 22:51:06 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-09-30T22:51:06Z</dc:date>
    <item>
      <title>Calculating Average Times in a Chart Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224525#M502836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus:&lt;/P&gt;&lt;P&gt;Please bail me out once again. I have a table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 1.45in; padding-right: 5.4pt; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; border: black 1pt solid;" valign="top" width="139"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Employee&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 117pt; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1;" valign="top" width="156"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;StartTime&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 112.5pt; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1;" valign="top" width="150"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;EndTime&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 1;"&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 1.45in; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1;" valign="top" width="139"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Bubba&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 117pt; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="156"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;8/15/10 08:00&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 112.5pt; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="150"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;8/16/10 10:20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 2;"&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 1.45in; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1;" valign="top" width="139"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Bubba&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 117pt; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="156"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;8/18/10 12:00&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 112.5pt; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="150"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;8/20/10 12:00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 3; mso-yfti-lastrow: yes;"&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 1.45in; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1;" valign="top" width="139"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Hazel&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 117pt; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="156"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;8/08/10 09:30&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 112.5pt; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="150"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;8/08/10 10:15&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin: 0in 0in 10pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;We want to get the average, by person of time to complete each task. So, Bubba's average is (26:20 + 48:00) / 2 = 37:10. Hazel is simply 00:45.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Resulting table should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 1.45in; padding-right: 5.4pt; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; border: black 1pt solid;" valign="top" width="139"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Employee&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 117pt; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1;" valign="top" width="156"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Average (in hours)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 1;"&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 1.45in; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1;" valign="top" width="139"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Bubba&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 117pt; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="156"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;37:10&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="mso-yfti-irow: 2; mso-yfti-lastrow: yes;"&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 1.45in; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1;" valign="top" width="139"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Hazel&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: black 1pt solid; border-left: #d4d0c8; padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 117pt; padding-right: 5.4pt; border-top: #d4d0c8; border-right: black 1pt solid; padding-top: 0in; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; mso-border-bottom-themecolor: text1; mso-border-right-themecolor: text1;" valign="top" width="156"&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;00:45&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin: 0in 0in 10pt;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;My Pivot Table current expression is:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;B&gt;avg&lt;/B&gt;(&lt;B&gt;aggr&lt;/B&gt;(&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;EndTime&lt;/B&gt; - &lt;B&gt;StartTime&lt;/B&gt;), &lt;B&gt;Employee&lt;/B&gt;)), which is obviously not working. Any suggestions are greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 18:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224525#M502836</guid>
      <dc:creator />
      <dc:date>2010-09-30T18:56:05Z</dc:date>
    </item>
    <item>
      <title>Calculating Average Times in a Chart Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224526#M502837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as the dimension is employee, a simple avg(EndTime-StartTime) should work.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 19:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224526#M502837</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-30T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Calculating Average Times in a Chart Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224527#M502838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;I originally tried this, I'm getting 201:15 as a result from 441:37 and 81:04 (should be 261:41). I have no idea how QlikView calculated that number, it does not make any sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 20:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224527#M502838</guid>
      <dc:creator />
      <dc:date>2010-09-30T20:28:13Z</dc:date>
    </item>
    <item>
      <title>Calculating Average Times in a Chart Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224528#M502839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I imported the table above from Excel and the avg() funtion seemed to work along with the function sum(EndTime-StartTime)/count(Employee)*24*60. Does the table in your data source really have the structure you posted?&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 21:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224528#M502839</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-30T21:23:26Z</dc:date>
    </item>
    <item>
      <title>Calculating Average Times in a Chart Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224529#M502840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it does not. . . I tried to simplify to take out the complexities of the table. Let me mess with this a little more and I'll post my findings/questions. I'll make sure to include all of the table structures. Thanks for your help so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 22:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224529#M502840</guid>
      <dc:creator />
      <dc:date>2010-09-30T22:42:36Z</dc:date>
    </item>
    <item>
      <title>Calculating Average Times in a Chart Table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224530#M502841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, sounds good. My last suggestion by assuming what the table structure is like, I would try something like this:&lt;/P&gt;&lt;P&gt;avg(&lt;B&gt;aggr&lt;/B&gt;(&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;EndTime&lt;/B&gt; - &lt;B&gt;StartTime&lt;/B&gt;), &lt;B&gt;CaseID&lt;/B&gt;))&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 22:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-Times-in-a-Chart-Table/m-p/224530#M502841</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-30T22:51:06Z</dc:date>
    </item>
  </channel>
</rss>

