<?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 of time difference between two dates of 2 differents rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25678#M776885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is what I understood from his earlier reply. But here we should know how many hours he is considering in a day like 8 hrs or 24 hrs right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2018 21:04:33 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2018-04-26T21:04:33Z</dc:date>
    <item>
      <title>Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25670#M776877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to achieve this in Qlikview. Can any suggest me how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;My Data Set:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 270px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" width="74"&gt;Part&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Event&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="132"&gt;Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;12345&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;StartTime&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;4/26/18 10:30 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;12345&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EndTime&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;4/26/18 12:30 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;11111&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;StartTime&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;4/25/18 10:00 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;11111&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EndTime&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;4/25/18 11:00 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;22222&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;StartTime&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;4/24/18 11:20 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;22222&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EndTime&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;4/24/18 12:20 PM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to calculate the difference between start time and end time for each part and average it out. I want this happen in one expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the result is (2 hours for first part+1 hour for second part + 1 hour for third part). so the average is 4/3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used Only({&amp;lt;Event={'EndTime'}&amp;gt;}Time)-Only({&amp;lt;Event={'StartTime'}&amp;gt;}Time) to get the difference. I am not sure how to calculate the average though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25670#M776877</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25671#M776878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Only({&amp;lt;Event={'EndTime'}&amp;gt;}Time)-Only({&amp;lt;Event={'StartTime'}&amp;gt;}Time), Part))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 18:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25671#M776878</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-26T18:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25672#M776879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny.&amp;nbsp; It definitely.helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add to my previous question, how do i exclude weekends when i calculate the time difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp; In the below example, my start time is on Friday and End Time is on Monday. If I exclude weekends, time difference is 10 hours. But based on previous logic, it is considering weekends and giving me a bigger value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="19" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="74"&gt;Part&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="64"&gt;Event&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="132"&gt;Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="19" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;12345&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;StartTime&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;4/23/18 10:30 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="19" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;12345&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;EndTime&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;4/26/18 08:30 AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me on this one too!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 19:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25672#M776879</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2018-04-26T19:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25673#M776880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be this extending Sunny's expression try like&lt;/P&gt;&lt;P&gt;Sorry this does not work.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;Avg(Aggr( &lt;SPAN style="color: #ff6600; text-decoration: line-through;"&gt;Networkdays(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-decoration: line-through;"&gt;&lt;STRONG&gt;Only({&amp;lt;Event={'EndTime'}&amp;gt;}Time)-Only({&amp;lt;Event={'StartTime'}&amp;gt;}Time)&lt;SPAN style="color: #ff6600; text-decoration: line-through;"&gt;)&lt;/SPAN&gt;, Part))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 20:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25673#M776880</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-04-26T20:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25674#M776881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your start and end times are correct coz 4/23 and 4/26 are not Friday or Monday?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 20:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25674#M776881</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-04-26T20:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25675#M776882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishwarath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry. I put the wrong dates there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is updated data:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="19" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="74"&gt;Part&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="64"&gt;Event&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="132"&gt;Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="19" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;12345&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;StartTime&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;4/20/18 10:30 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="19" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;12345&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;EndTime&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;4/23/18 08:30 AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 20:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25675#M776882</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2018-04-26T20:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25676#M776883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking for difference between the two dates in time for working days?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 21:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25676#M776883</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-26T21:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25677#M776884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 21:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25677#M776884</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2018-04-26T21:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25678#M776885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is what I understood from his earlier reply. But here we should know how many hours he is considering in a day like 8 hrs or 24 hrs right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 21:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25678#M776885</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-04-26T21:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25679#M776886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 21:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25679#M776886</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-26T21:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Average of time difference between two dates of 2 differents rows</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25680#M776887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to know for&amp;nbsp; both cases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to calculate if it is 8 hours a day and&amp;nbsp; 24 hours a day?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 21:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-time-difference-between-two-dates-of-2-differents/m-p/25680#M776887</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2018-04-26T21:08:33Z</dc:date>
    </item>
  </channel>
</rss>

