<?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 not adding up correctly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-not-adding-up-correctly/m-p/1322800#M830131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remaining Allocated Hours are already 52.69... so is that right? For Actual Hours, try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr([Total Hours], RowNumber))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167474_Capture.PNG" style="height: 86px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 13:27:26 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-20T13:27:26Z</dc:date>
    <item>
      <title>Sum not adding up correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-adding-up-correctly/m-p/1322799#M830130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I sum the [Total Hours] field by [Project Name] and [Date Formatted], it is not correctly added together because some of the rows in the excel sheet are the exact same. I need to find a way to make each row unique and being able to sum the [Total Hours] by the same [Date Formatted] and [Project Name]. It also needs to be able to calculate the average [Demand Hours] correctly and of right now it is, but that is just something to keep in mind when making changes. The Actual Hours sum should equal 31.75 and the average Remaining Allocated Hours should be 52.69. I also have to use DISTINCT because otherwise the numbers are way off. I have attached a sample Qlikview file and a sample Excel file. Any suggestions would be greatly appreciated! &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;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167470_Capture.PNG" style="height: 76px; width: 620px;" /&gt;&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/Sum-not-adding-up-correctly/m-p/1322799#M830130</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum not adding up correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-adding-up-correctly/m-p/1322800#M830131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remaining Allocated Hours are already 52.69... so is that right? For Actual Hours, try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr([Total Hours], RowNumber))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167474_Capture.PNG" style="height: 86px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 13:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-adding-up-correctly/m-p/1322800#M830131</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-20T13:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum not adding up correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-adding-up-correctly/m-p/1322801#M830132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Caitlyn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your outter join is multiplying the lines for [Total hours] field.&lt;/P&gt;&lt;P&gt;Instead of joining, create a link between the two tables and then do the expressions, like the attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 13:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-adding-up-correctly/m-p/1322801#M830132</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-06-20T13:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum not adding up correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-not-adding-up-correctly/m-p/1322802#M830133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply! It did exactly what I needed it to do! &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, 20 Jun 2017 15:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-not-adding-up-correctly/m-p/1322802#M830133</guid>
      <dc:creator />
      <dc:date>2017-06-20T15:26:11Z</dc:date>
    </item>
  </channel>
</rss>

