<?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: Issues with sum function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711200#M256152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hannah,&lt;/P&gt;&lt;P&gt;the number 1917180,11 looks like being the TOTAL of all suppliers regardless of your selection!?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your sample data for further help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Sep 2014 12:23:50 GMT</pubDate>
    <dc:creator>veidlburkhard</dc:creator>
    <dc:date>2014-09-28T12:23:50Z</dc:date>
    <item>
      <title>Issues with sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711195#M256147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm having a really inoing issue... The sum does not seem to work in pivot tables or in the straight tables, and this is not for all dimensions just some, and I'm out of ideas...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i simply used the function =sum([field]) and it should work right, but it doesn't.&amp;nbsp; The data is uploaded from an excel spread sheet and the sum is correct when you extract fields to a list box but not in the pivot table. So the sum in the list box is 227556 + 339631 + 215615 = 782 802 HOWEVER....&amp;nbsp; in the pivot table the sum is 1917180 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;[Invoiced Value EUR]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture Qv question.GIF.gif" class="jive-image" src="/legacyfs/online/67806_Capture Qv question.GIF.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Sep 2014 11:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711195#M256147</guid>
      <dc:creator />
      <dc:date>2014-09-28T11:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711196#M256148</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(sum([Invoiced Value EUR]),[Site Name],[Supplier Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Sep 2014 11:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711196#M256148</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-09-28T11:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711197#M256149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide sample input&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Sep 2014 11:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711197#M256149</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-28T11:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711198#M256150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your answer unfortunately it did not change the out put... still getting the same numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Hannah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Sep 2014 11:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711198#M256150</guid>
      <dc:creator />
      <dc:date>2014-09-28T11:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711199#M256151</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;Can you upload sample application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Sep 2014 11:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711199#M256151</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-09-28T11:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711200#M256152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hannah,&lt;/P&gt;&lt;P&gt;the number 1917180,11 looks like being the TOTAL of all suppliers regardless of your selection!?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your sample data for further help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Sep 2014 12:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711200#M256152</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2014-09-28T12:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711201#M256153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;like &lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/ashfaq_haseeb"&gt;ashfaq_haseeb&lt;/A&gt; wrote but &lt;/STRONG&gt;&lt;/SPAN&gt;maybe using distinct&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;sum( aggr(sum(&amp;nbsp; DISTINCT&amp;nbsp; [Invoiced Value EUR]),[Site Name],[Supplier Name]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Alessandro Furtado&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Sep 2014 13:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711201#M256153</guid>
      <dc:creator>afurtado</dc:creator>
      <dc:date>2014-09-28T13:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711202#M256154</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;you have multiple records containing the same Invoiced Value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1917180.1149425 = &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;3 *&lt;/STRONG&gt;&lt;/SPAN&gt; 227556.55172414 + &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;3 *&lt;/STRONG&gt;&lt;/SPAN&gt; 339631.6091954 + 215615.63218391&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the Sum(Distinct [Invoiced Value]) might work if there are always distinct values per site name / supplier name combination, but can this be guaranteed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look into your data model for the reasin of those records occuring multiple times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Sep 2014 15:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711202#M256154</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-28T15:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711203#M256155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alessandro! That fixed the issue, do you recommend to do this in all tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Hannah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 06:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711203#M256155</guid>
      <dc:creator />
      <dc:date>2014-09-29T06:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with sum function</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711204#M256156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 06:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-with-sum-function/m-p/711204#M256156</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-09-29T06:33:44Z</dc:date>
    </item>
  </channel>
</rss>

