<?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 Time Duration in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Time-Duration/m-p/939453#M954794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database which has a sequence of events for different operatives and I need to calculate how they are spending their time. So for example, I would have a sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;08:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log in&lt;/P&gt;&lt;P&gt;08:10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer Call&lt;/P&gt;&lt;P&gt;08:20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call End&lt;/P&gt;&lt;P&gt;08:20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start Break&lt;/P&gt;&lt;P&gt;08:40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer Call&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;09:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call End&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to see how long in that hour was spent on each activity (e.g 10 minutes idol time, 30 minutes on calls, 20 minutes break)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because there is no "Start Time" and "End Time" for each activity, I'm struggling to do calculate this. I thought about using the peek function but it's not something I have used so much before and I didnt know how this would work when there are multiple operatives&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached for a very simple example, hopefully you guys can help me&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, 19 Nov 2015 09:51:34 GMT</pubDate>
    <dc:creator>Karl_Hart</dc:creator>
    <dc:date>2015-11-19T09:51:34Z</dc:date>
    <item>
      <title>Calculating Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-Duration/m-p/939453#M954794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database which has a sequence of events for different operatives and I need to calculate how they are spending their time. So for example, I would have a sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;08:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log in&lt;/P&gt;&lt;P&gt;08:10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer Call&lt;/P&gt;&lt;P&gt;08:20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call End&lt;/P&gt;&lt;P&gt;08:20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start Break&lt;/P&gt;&lt;P&gt;08:40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Answer Call&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;09:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call End&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to see how long in that hour was spent on each activity (e.g 10 minutes idol time, 30 minutes on calls, 20 minutes break)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because there is no "Start Time" and "End Time" for each activity, I'm struggling to do calculate this. I thought about using the peek function but it's not something I have used so much before and I didnt know how this would work when there are multiple operatives&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached for a very simple example, hopefully you guys can help me&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, 19 Nov 2015 09:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-Duration/m-p/939453#M954794</guid>
      <dc:creator>Karl_Hart</dc:creator>
      <dc:date>2015-11-19T09:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-Duration/m-p/939454#M954795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like in attached sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created additional records for start and end work time per Operative, alternatively, you can calculate the idle time in a chart expression only if the start and end work times are identical for all Operatives. Both alternatives shown in the sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 15:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-Duration/m-p/939454#M954795</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-19T15:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Time Duration</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-Duration/m-p/939455#M954796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks, that's a great solution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 15:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-Duration/m-p/939455#M954796</guid>
      <dc:creator>Karl_Hart</dc:creator>
      <dc:date>2015-11-19T15:54:01Z</dc:date>
    </item>
  </channel>
</rss>

