<?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 duplication - object level in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-duplication-object-level/m-p/7265#M1131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be ideal to fix this in the script by may be creating a separate table which keeps ItemsSold.ItemNo, ItemSold.Document No and all the those number which have one to one relationship with those two fields. This way, when you sum them, you won't be duplicating them. But if change the script is not a possibility... you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Sum(DISTINCT [ItemsSold.No of Units Sold]), [ItemsSold.Item No], [ItemSold.Document No]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jan 2018 15:01:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-25T15:01:32Z</dc:date>
    <item>
      <title>Sum duplication - object level</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-duplication-object-level/m-p/7264#M1130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find attached a file of my results on my model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is that if I sum my quantities on the object, my tonnage and units sold are over stated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;furthermore, should I fix this on a object or total script level?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 14:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-duplication-object-level/m-p/7264#M1130</guid>
      <dc:creator>ranibosch</dc:creator>
      <dc:date>2018-01-25T14:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sum duplication - object level</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-duplication-object-level/m-p/7265#M1131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be ideal to fix this in the script by may be creating a separate table which keeps ItemsSold.ItemNo, ItemSold.Document No and all the those number which have one to one relationship with those two fields. This way, when you sum them, you won't be duplicating them. But if change the script is not a possibility... you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Sum(DISTINCT [ItemsSold.No of Units Sold]), [ItemsSold.Item No], [ItemSold.Document No]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 15:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-duplication-object-level/m-p/7265#M1131</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-25T15:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum duplication - object level</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-duplication-object-level/m-p/7266#M1132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, i've sorted this out in my script using temporary loads and then grouping it by document number..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 15:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-duplication-object-level/m-p/7266#M1132</guid>
      <dc:creator>ranibosch</dc:creator>
      <dc:date>2018-01-25T15:07:28Z</dc:date>
    </item>
  </channel>
</rss>

