<?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: Straight table sum difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-difference/m-p/654863#M1065792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are getting 182 because Total calculation based on your expression is like this&lt;/P&gt;&lt;P&gt;197539 / Max(Dt) - Min(Dt)&lt;/P&gt;&lt;P&gt;=197539 / 9/9/2014 2:58:27AM - 7/26/2014 12:15:33 AM&lt;/P&gt;&lt;P&gt;=197539 / 1082 : 42&lt;/P&gt;&lt;P&gt;=182.45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1082 : 42 -- You can see this value in your pivot table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 13:03:25 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-09-09T13:03:25Z</dc:date>
    <item>
      <title>Straight table sum difference</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-difference/m-p/654861#M1065790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample qlikview work file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have pulled the data and used that in a straight table. The straight table contain the following items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Date, Center and Shift&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start - min(PGAuditDateTime)&lt;/P&gt;&lt;P&gt;End - max(PGAuditDateTime)&lt;/P&gt;&lt;P&gt;Length - (Interval(Max(PGAuditDateTime)-Min(PGAuditDateTime),'h:m'))&amp;nbsp; - i have used sum of rows in expression&lt;/P&gt;&lt;P&gt;Graded Qty= sum(GradedQty)&lt;/P&gt;&lt;P&gt;Graded / Hour = (sum(GradedQty)/(interval(time(End, 'hh:mm') - time(Start, 'hh:mm'), 'hh:mm')*24))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the Graded / hour partial sum shows a different value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this example the hours is 372.04 thats correct (i have used sum of rows in expression in expression tab) and graded qty is 197539 thats also correct, but the Graded / Hour= 182.45 which is wrong, it should be of 531.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody please have a look on that and let me know. its a bit of urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your time and help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranjith Kumaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 11:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-difference/m-p/654861#M1065790</guid>
      <dc:creator />
      <dc:date>2014-09-09T11:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table sum difference</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-difference/m-p/654862#M1065791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=0,&lt;/P&gt;&lt;P&gt;sum(GradedQty)/sum(aggr(interval(max(PGAuditDateTime)-min(PGAuditDateTime)),ProcessCenter,PcShift,Date))/24,&lt;/P&gt;&lt;P&gt;sum(GradedQty)/interval(max(PGAuditDateTime) - min(PGAuditDateTime))/24&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 12:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-difference/m-p/654862#M1065791</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-09T12:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table sum difference</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-difference/m-p/654863#M1065792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are getting 182 because Total calculation based on your expression is like this&lt;/P&gt;&lt;P&gt;197539 / Max(Dt) - Min(Dt)&lt;/P&gt;&lt;P&gt;=197539 / 9/9/2014 2:58:27AM - 7/26/2014 12:15:33 AM&lt;/P&gt;&lt;P&gt;=197539 / 1082 : 42&lt;/P&gt;&lt;P&gt;=182.45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1082 : 42 -- You can see this value in your pivot table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 13:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-difference/m-p/654863#M1065792</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-09T13:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table sum difference</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-sum-difference/m-p/654864#M1065793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works perfect!!! thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 13:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-sum-difference/m-p/654864#M1065793</guid>
      <dc:creator />
      <dc:date>2014-09-09T13:11:36Z</dc:date>
    </item>
  </channel>
</rss>

