<?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 Problems with &amp;quot;Sum&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738869#M1076627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a fairly large data set of invoice history linked on invoice date to a master calendar. When I create either a chart or pivot table from the data set where the Dimensions are month (from the master calendar table) and the Expression is sum(NetPrice_Extended) I get an incorrect result (exactly 2 times what it should be). However, when I export the same data set to Excel (via table box) and create a pivot table in Excel I get the correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Result from Qlikview=&amp;nbsp; 2,348,336&lt;/P&gt;&lt;P&gt;Result from Excel (verified correct)= 1,174,167&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result from Qlikview = 1,246,473&lt;/P&gt;&lt;P&gt;Result from Excel (verified correct) = 623,236&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 12:39:49 GMT</pubDate>
    <dc:creator>hobanwashburne</dc:creator>
    <dc:date>2014-07-24T12:39:49Z</dc:date>
    <item>
      <title>Problems with "Sum"</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738869#M1076627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a fairly large data set of invoice history linked on invoice date to a master calendar. When I create either a chart or pivot table from the data set where the Dimensions are month (from the master calendar table) and the Expression is sum(NetPrice_Extended) I get an incorrect result (exactly 2 times what it should be). However, when I export the same data set to Excel (via table box) and create a pivot table in Excel I get the correct result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Result from Qlikview=&amp;nbsp; 2,348,336&lt;/P&gt;&lt;P&gt;Result from Excel (verified correct)= 1,174,167&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result from Qlikview = 1,246,473&lt;/P&gt;&lt;P&gt;Result from Excel (verified correct) = 623,236&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 12:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738869#M1076627</guid>
      <dc:creator>hobanwashburne</dc:creator>
      <dc:date>2014-07-24T12:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with "Sum"</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738870#M1076629</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;a tablebox only shows you all the possible combinations of values that you have. If you have duplicates in your table - sounds a bit like you might have every record twice - it wouldn't show you that unless you use a RowNo() as a unique ID_field in every record. That's why, when doing a tablebox and exporting to Excel, you get the correct result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 12:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738870#M1076629</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-07-24T12:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with "Sum"</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738871#M1076631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RowNo() as No &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while loading the table in your script.... &lt;/P&gt;&lt;P&gt;This should work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 12:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738871#M1076631</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-24T12:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with "Sum"</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738872#M1076633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding RowNo() in the load did not fix the problem, but it did confirm DataNibbler's suspicion. Any ideas on how I could have ended up with exactly double the records in my QVD creation - or how during my QVD creation I can remove duplicates?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 13:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738872#M1076633</guid>
      <dc:creator>hobanwashburne</dc:creator>
      <dc:date>2014-07-24T13:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with "Sum"</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738873#M1076634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duplicates usually occur as a result of joins. Was any other table joined to the original table which has the required fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 15:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738873#M1076634</guid>
      <dc:creator />
      <dc:date>2014-07-24T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with "Sum"</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738874#M1076635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, there are multiple joins in the QVD creation. I believe that I have solved the issue by adding "Distinct" to the load of the primary fact table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 15:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-quot-Sum-quot/m-p/738874#M1076635</guid>
      <dc:creator>hobanwashburne</dc:creator>
      <dc:date>2014-07-24T15:44:29Z</dc:date>
    </item>
  </channel>
</rss>

