<?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: how to sum duplicate value ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862888#M999032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cecile,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this I think will be down to your underlying data model.&lt;/P&gt;&lt;P&gt;Your underlying fact table table will contain the value 624 as a single row.&lt;/P&gt;&lt;P&gt;In your dimension table the join on that fact row is to &lt;STRONG&gt;two&lt;/STRONG&gt; separate material numbers, as you can see (31344,31348).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you bring this dimension field into a pivot table, QV will correctly show you the 624 value against both possible material numbers.&lt;/P&gt;&lt;P&gt;However the total value you see is for the &lt;EM&gt;expression total&lt;/EM&gt; which will only ever total the actual fact values you have. As the 624 fact row is only in there once, that's what is used for the total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least I believe that is what your issue is and 262059 is an inflated value of your true costs, which I wouldn't is correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2015 09:32:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-10T09:32:18Z</dc:date>
    <item>
      <title>how to sum duplicate value ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862879#M999023</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 have a problem in a pivot table, the total is wrong because I have two sames values in the field I want to sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer ID :&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100,&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the total should be 250 but in my pivot table there is 150 as if Qlikview considered the sales value as a duplicate value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to put in my expression sum(Distinct sales) but it doesn't change anything. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me ? Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 08:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862879#M999023</guid>
      <dc:creator />
      <dc:date>2015-06-10T08:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum duplicate value ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862880#M999024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="88916" alt="val.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88916_val.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Getting right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While storing Qlikview stores duplicates only once, but in calculation it calculates all values. (Correct me if I am wrong.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 08:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862880#M999024</guid>
      <dc:creator>qlikmsg4u</dc:creator>
      <dc:date>2015-06-10T08:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum duplicate value ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862881#M999025</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;I saves all unique values once but the also store the frequency of the value meaning it will more or less be like 100*2+50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Hampus &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 08:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862881#M999025</guid>
      <dc:creator />
      <dc:date>2015-06-10T08:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum duplicate value ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862882#M999026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Cecile,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the above responses do not resolve you issue, please upload your qvw.&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;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 08:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862882#M999026</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-06-10T08:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum duplicate value ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862883#M999027</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 below two expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(sum(Distinct sales),CustomerID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862883#M999027</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-10T09:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum duplicate value ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862884#M999028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Thanks for your reply but I don't think it calculates all value. For confidentiality reason, I can't upload my qvw file (beside I don't know how to do it in this message &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; !). I exported my pivot tablefrom QVW&amp;nbsp; to excel and the result shown in QVW is 261 436 instead of 262 059 -&amp;gt; 624 value appears twice !&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/88912_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862884#M999028</guid>
      <dc:creator />
      <dc:date>2015-06-10T09:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum duplicate value ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862885#M999029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI..&lt;/P&gt;&lt;P&gt;It is giving right answer..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862885#M999029</guid>
      <dc:creator />
      <dc:date>2015-06-10T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum duplicate value ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862886#M999030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;thanks a lot with the aggregate function it works !! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862886#M999030</guid>
      <dc:creator />
      <dc:date>2015-06-10T09:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum duplicate value ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862887#M999031</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;Welcome.&lt;/P&gt;&lt;P&gt;Mark appropriate reply as correct and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862887#M999031</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-10T09:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to sum duplicate value ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862888#M999032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cecile,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this I think will be down to your underlying data model.&lt;/P&gt;&lt;P&gt;Your underlying fact table table will contain the value 624 as a single row.&lt;/P&gt;&lt;P&gt;In your dimension table the join on that fact row is to &lt;STRONG&gt;two&lt;/STRONG&gt; separate material numbers, as you can see (31344,31348).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you bring this dimension field into a pivot table, QV will correctly show you the 624 value against both possible material numbers.&lt;/P&gt;&lt;P&gt;However the total value you see is for the &lt;EM&gt;expression total&lt;/EM&gt; which will only ever total the actual fact values you have. As the 624 fact row is only in there once, that's what is used for the total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least I believe that is what your issue is and 262059 is an inflated value of your true costs, which I wouldn't is correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-sum-duplicate-value/m-p/862888#M999032</guid>
      <dc:creator />
      <dc:date>2015-06-10T09:32:18Z</dc:date>
    </item>
  </channel>
</rss>

