<?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(value) doubles values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054511#M465314</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;Sum(Agg(Sum(MeasureName), docnum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2016 09:13:32 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2016-03-23T09:13:32Z</dc:date>
    <item>
      <title>sum(value) doubles values</title>
      <link>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054507#M465310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Problem with my Pivot.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119079_pastedImage_0.png" /&gt;&lt;/P&gt;&lt;P&gt;I have a table with all &lt;STRONG&gt;docnum&lt;/STRONG&gt; related to an asset. &lt;STRONG&gt;Some docnums&lt;/STRONG&gt; have more than one line (doclinenum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he calculation "sum(valuehome)" calculated wrong. It takes in every line the amount of both lines and sums up the wrong way (1.439,30 instaed of 719,65)..&lt;/P&gt;&lt;P&gt;I thought of just taking valuehome instaed of sum(valuehome), but then I dont get totals.&lt;/P&gt;&lt;P&gt;In the pic below the total of "sum(valuehome)" is wrong and only "valuehome" does not Show a Total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/119090_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this Problem? I want to have the correct amount in every line (719,65) and the correct sum (1.439,30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 08:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054507#M465310</guid>
      <dc:creator />
      <dc:date>2016-03-23T08:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: sum(value) doubles values</title>
      <link>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054508#M465311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Divide the sum by the count of doclinenum values: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(valuehome)/count(total &amp;lt;docnum&amp;gt; doclinenum)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 08:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054508#M465311</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-23T08:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: sum(value) doubles values</title>
      <link>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054509#M465312</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;sum(distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;valuehome)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 08:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054509#M465312</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-23T08:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: sum(value) doubles values</title>
      <link>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054510#M465313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say that you need to add a distinct to the dimension 'doclinenum' =count(distinct(doclinenum))&lt;/P&gt;&lt;P&gt;that way you filter out the double numbers. and the count should work properly.&lt;/P&gt;&lt;P&gt;(I am not entirely sure, I am not able to test it right now.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 08:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054510#M465313</guid>
      <dc:creator>jjbom1990</dc:creator>
      <dc:date>2016-03-23T08:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: sum(value) doubles values</title>
      <link>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054511#M465314</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;Sum(Agg(Sum(MeasureName), docnum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054511#M465314</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-03-23T09:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: sum(value) doubles values</title>
      <link>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054512#M465315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&amp;nbsp; try Max rather than sum if the values are same.&amp;nbsp; Thanks Kiran Kumar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 10:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-value-doubles-values/m-p/1054512#M465315</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-23T10:26:13Z</dc:date>
    </item>
  </channel>
</rss>

