<?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: sum (expression) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430351#M160445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr(Interval(time(OUT_TIME,'hh:mm:ss')-Time(IN_TIME,'hh:mm:ss'),'hh:mm'),person)&lt;/P&gt;&lt;P&gt;change with your fieldname it gives you total hours &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Mar 2013 19:27:42 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2013-03-11T19:27:42Z</dc:date>
    <item>
      <title>sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430343#M160437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(interval(INTime-VLateTime,'hh:mm'))&lt;/P&gt;&lt;P&gt;it shows error in calculation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 18:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430343#M160437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T18:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430344#M160438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(Interval(time(INTime,'hh:mm')-Time(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;VLateTime&lt;/SPAN&gt;,'hh:mm'),'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 18:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430344#M160438</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-03-11T18:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430345#M160439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no its not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430345#M160439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T19:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430346#M160440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect there should be aggr within sum:&lt;/P&gt;&lt;P&gt;sum(&lt;STRONG&gt;aggr&lt;/STRONG&gt;(interval(...))&lt;STRONG&gt;, something&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;Can't tell for sure without seeing an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430346#M160440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T19:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430347#M160441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is sample file pls see that table box has error in calculation.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430347#M160441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T19:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430348#M160442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;m using personal edition so can't open your file.......&lt;/P&gt;&lt;P&gt;tell me the exact expression where you get the eror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430348#M160442</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-03-11T19:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430349#M160443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see error here, it returns some result.&amp;nbsp; Anyway, see if this is what you expect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;VLateTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 'hh:mm') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: In fact, I think that your expression is correct, the one without sum.&amp;nbsp; Actually it depennds on what is the purpose of this calculation&lt;/P&gt;&lt;P&gt;=Interval &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;VLateTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'hh:mm') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430349#M160443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T19:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430350#M160444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to calulate the&amp;nbsp; total late hours for each and every person&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430350#M160444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T19:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430351#M160445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr(Interval(time(OUT_TIME,'hh:mm:ss')-Time(IN_TIME,'hh:mm:ss'),'hh:mm'),person)&lt;/P&gt;&lt;P&gt;change with your fieldname it gives you total hours &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430351#M160445</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-03-11T19:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430352#M160446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i click the department i need to show the department wise late hours...if i click particular person it show the person late hours...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430352#M160446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T19:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430353#M160447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The person ID is one of the dimsnsions of the chart.&amp;nbsp; Your expression without sum&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Interval &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;VLateTime&lt;/EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'hh:mm') &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;returns result per line, person / date.&lt;/P&gt;&lt;P&gt;My expression with sum and aggr&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;VLateTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 'hh:mm') &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;returns result per person for all dates&amp;nbsp; Use what you consider is more appropriate for your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430353#M160447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T19:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430354#M160448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Modify a little:&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;VLateTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style=": ; color: #800000; font-size: 8pt;"&gt;DEPARTMENT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 'hh:mm')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;You also maybe need a different presentation, not a table like this - but thisexpression should work in any case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 19:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430354#M160448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T19:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430355#M160449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this you need to calculate this inside the script itself. Considering the performance and ease of use.&lt;/P&gt;&lt;P&gt;PresentDetails:&lt;/P&gt;&lt;P&gt;LOAD ID, &lt;/P&gt;&lt;P&gt; Date(Date#(Date, 'DD/MM/YYYY')) as PresentDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time( IN) as INTime ,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red; font-family: Arial; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval(INTime-$(VLateTime),'hh:mm') AS LateHours,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 20:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430355#M160449</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-03-11T20:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: sum (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430356#M160450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's correct, if create it as a field in the script, front end is very easy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 20:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-expression/m-p/430356#M160450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T20:28:41Z</dc:date>
    </item>
  </channel>
</rss>

