<?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 How to Sum within a group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891507#M310524</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 am having hard time computing difference in time for each "Key" within each day. Can someone please suggest how to do this in QlikView? I can do this Excel and Matlab. I am not an expert, but fairly familiar with Expressions and programming in Qlik. I have the following data and we want to compute:&lt;/P&gt;&lt;P&gt;1. Duration = the difference between "Complete Time" minus "Start" time for each "Key within the same "Date"&lt;/P&gt;&lt;P&gt;2. Then sum those "Duration" for each "Key" only within each day&lt;/P&gt;&lt;P&gt;3. Find percentage of total duration each key took across all keys within the same day. Duration of each key divided by (Minimum(Start) time across any key - Max (Complete) time across any key for the same day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So from below sample, we want answers to be:&lt;/P&gt;&lt;P&gt;On date 6-26-2013, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;the total duration &lt;/SPAN&gt;for Key 5 will be "25 minutes" + "1 minute" = "26 minutes".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column&lt;/P&gt;&lt;P&gt;- N is a unique number&lt;/P&gt;&lt;P&gt;- Key is identifier&lt;/P&gt;&lt;P&gt;- Date&lt;/P&gt;&lt;P&gt;- Start is starting date and time&lt;/P&gt;&lt;P&gt;- Complete is complete date and time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 433px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="text-align: center; vertical-align: middle;" width="64"&gt;N&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: center;" width="64"&gt;Key&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: center;" width="97"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: center;" width="104"&gt;Start&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: center;" width="104"&gt;Complete&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;11&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:06&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:06&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;12&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:07&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;13&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:08&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;14&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:05&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;15&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;4&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:05&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;16&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;5&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:11&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:36&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;17&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;5&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:09&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;18&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 8:55&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 8:55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;19&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 9:18&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 9:43&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;20&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 8:28&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 8:28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;21&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 8:49&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 9:14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;22&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;7&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 9:14&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 9:39&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;23&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 9:05&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 9:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;24&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:14&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:39&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;25&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 8:54&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 9:19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;26&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 9:34&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 9:59&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;27&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:27&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:52&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;28&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;4&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 10:11&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 10:36&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;29&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;7&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:25&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 16:42:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-06T16:42:42Z</dc:date>
    <item>
      <title>How to Sum within a group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891507#M310524</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 am having hard time computing difference in time for each "Key" within each day. Can someone please suggest how to do this in QlikView? I can do this Excel and Matlab. I am not an expert, but fairly familiar with Expressions and programming in Qlik. I have the following data and we want to compute:&lt;/P&gt;&lt;P&gt;1. Duration = the difference between "Complete Time" minus "Start" time for each "Key within the same "Date"&lt;/P&gt;&lt;P&gt;2. Then sum those "Duration" for each "Key" only within each day&lt;/P&gt;&lt;P&gt;3. Find percentage of total duration each key took across all keys within the same day. Duration of each key divided by (Minimum(Start) time across any key - Max (Complete) time across any key for the same day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So from below sample, we want answers to be:&lt;/P&gt;&lt;P&gt;On date 6-26-2013, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;the total duration &lt;/SPAN&gt;for Key 5 will be "25 minutes" + "1 minute" = "26 minutes".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column&lt;/P&gt;&lt;P&gt;- N is a unique number&lt;/P&gt;&lt;P&gt;- Key is identifier&lt;/P&gt;&lt;P&gt;- Date&lt;/P&gt;&lt;P&gt;- Start is starting date and time&lt;/P&gt;&lt;P&gt;- Complete is complete date and time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 433px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="text-align: center; vertical-align: middle;" width="64"&gt;N&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: center;" width="64"&gt;Key&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: center;" width="97"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: center;" width="104"&gt;Start&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: center;" width="104"&gt;Complete&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;11&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:06&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:06&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;12&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:07&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;13&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:08&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;14&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:05&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;15&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;4&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:05&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;16&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;5&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:11&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:36&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;17&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;5&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:09&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/26/2013 19:10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;18&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 8:55&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 8:55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;19&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 9:18&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 9:43&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;20&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 8:28&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 8:28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;21&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 8:49&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 9:14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;22&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;7&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 9:14&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/27/2013 9:39&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;23&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 9:05&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 9:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;24&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:14&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:39&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;25&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 8:54&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 9:19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;26&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 9:34&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 9:59&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;27&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:27&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:52&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;28&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;4&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 10:11&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 10:36&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-style: none; text-align: center; vertical-align: middle;"&gt;29&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;7&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 0:00&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:25&lt;/TD&gt;&lt;TD class="xl67" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;6/28/2013 11:50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 16:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891507#M310524</guid>
      <dc:creator />
      <dc:date>2015-07-06T16:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum within a sub loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891508#M310525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to do this in the script or front end?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 16:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891508#M310525</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-06T16:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum within a sub loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891509#M310526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I was trying this is Expression. I now plan to do this in script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 16:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891509#M310526</guid>
      <dc:creator />
      <dc:date>2015-07-06T16:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum within a sub loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891510#M310527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set TimestampFormat = 'M/DD/YYYY h:mm';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;LOAD Key,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; Date,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; interval(sum([Complete Time]-Start)) as Interval&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;GROUP BY Key, Date;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="line-height: 1.5em; font-size: 10pt;"&gt;LOAD N, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Complete Time]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="171364" data-objecttype="1" href="https://community.qlik.com/thread/171364"&gt;https://community.qlik.com/thread/171364&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 16:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891510#M310527</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-06T16:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum within a sub loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891511#M310528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want this, theexpression is&lt;/P&gt;&lt;P&gt;sum((Date#(Complete, 'MM/DD/YYYY hh:mm') - Date#(Start, 'MM/DD/YYYY hh:mm')))&lt;/P&gt;&lt;P&gt;formatted in number tab as interval&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91986_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 16:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891511#M310528</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-06T16:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum within a sub loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891512#M310529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Interval(Complete - Start, 'hh:mm') as Duration;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD N, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(TimeStamp#(Date, 'M/DD/YYYY h:mm')) as Date, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TimeStamp#(Start, 'M/DD/YYYY h:mm') as Start, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TimeStamp#(Complete, 'M/DD/YYYY h:mm') as Complete&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="171364" data-objecttype="1" href="https://community.qlik.com/thread/171364"&gt;https://community.qlik.com/thread/171364&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Interval(Sum(Duration), 'hh:mm')&amp;nbsp; as [Total Duration]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Key, Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Duration/[Total Duration] as Percentage&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="91984" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91984_Capture.PNG" style="height: 266px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 16:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891512#M310529</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-06T16:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum within a sub loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891513#M310530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="2015-07-06 #1 How to Sum within a Sub Loop.PNG" class="jive-image image-1" src="/legacyfs/online/91988_2015-07-06 #1 How to Sum within a Sub Loop.PNG" style="height: 519px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891513#M310530</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-07-06T17:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum within a sub loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891514#M310531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If none of above worked for you, maybe your qlik settings are inpropper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below setting at the begining of the script.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET TimestampFormat= 'MM/DD/YYYY hh:mm';&lt;/STRONG&gt; //it will ensure that qlik will recognize dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in front end use&amp;nbsp; expression: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SUM(Timestamp#(Complete)-Timestamp#(Start))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in straight or pivot table to calculate sum of differnces.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891514#M310531</guid>
      <dc:creator />
      <dc:date>2015-07-06T17:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum within a sub loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891515#M310532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks SunIndia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 18:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891515#M310532</guid>
      <dc:creator />
      <dc:date>2015-07-06T18:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum within a sub loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891516#M310533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I applied the logic provided by &lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/petter-s"&gt;petter-s&lt;/A&gt;&lt;/STRONG&gt; , but it did not work initial. After applying the format you provided, it worked. This is what I do not like about QlikView. It is very very tricky.&lt;/P&gt;&lt;P&gt;By default, the date and time format was:&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;this did not work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed this to:&lt;/P&gt;&lt;P&gt;SET TimestampFormat= 'MM/DD/YYYY hh:mm';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 18:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891516#M310533</guid>
      <dc:creator />
      <dc:date>2015-07-06T18:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum within a sub loop</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891517#M310534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;Thank you for the answer. It finally worked. It did not work initially. After the suggestion by "Nannyogg" I changed the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;SET TimestampFormat, and then it worked. QlikView is very very sensitive to Date and Time format. You struggle a lot to fix minor formatting changes before you see the results. As far as programming is concerned, Excel and Matlab are extremely easy to program compared to QlikView. But QlikView has tons of nice features&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks again for your quick response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Raghu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 19:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-within-a-group/m-p/891517#M310534</guid>
      <dc:creator />
      <dc:date>2015-07-06T19:01:08Z</dc:date>
    </item>
  </channel>
</rss>

