<?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 Wrong sum but good values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-sum-but-good-values/m-p/1280403#M621192</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;I'm new from a Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue when i use the sum function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(distinct {$}(field1-field2)*field3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number which is returned is totally wrong whereas my values are true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some tests and i think the parenthses make it wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2017 11:01:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-02T11:01:50Z</dc:date>
    <item>
      <title>Wrong sum but good values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-sum-but-good-values/m-p/1280403#M621192</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;I'm new from a Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue when i use the sum function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(distinct {$}(field1-field2)*field3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number which is returned is totally wrong whereas my values are true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some tests and i think the parenthses make it wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 11:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-sum-but-good-values/m-p/1280403#M621192</guid>
      <dc:creator />
      <dc:date>2017-02-02T11:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong sum but good values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-sum-but-good-values/m-p/1280404#M621193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean here?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;The number which is returned is totally wrong whereas my values are true&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you share a sample? One thing I would recommend it to cautiously use DISTINCT with Sum. It may not do what you think it might be doing. But without knowing much, I am not sure what your issue might be&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 15:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-sum-but-good-values/m-p/1280404#M621193</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-02T15:45:21Z</dc:date>
    </item>
  </channel>
</rss>

