<?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: Distinct Sum Aggregation issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distinct-Sum-Aggregation-issues/m-p/2117111#M1224561</link>
    <description>&lt;P&gt;You have multiple occurrences of selling price? You seem to be taking care of that with Sum(Distinct...&lt;/P&gt;
&lt;P&gt;I'm not understanding your data. Can you post some sample data?&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 18:26:10 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2023-09-14T18:26:10Z</dc:date>
    <item>
      <title>Distinct Sum Aggregation issues</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Sum-Aggregation-issues/m-p/2116721#M1224550</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to Qlik and have been facing issues with aggr distinct sum. When I use below function to calculate the selling price, I get different number to the actual selling price. Its really strange and difficult to figure out what possibly could be wrong.&lt;/P&gt;
&lt;P&gt;selling price = sum(aggr(sum(distinct selling price),competitor, material))&lt;/P&gt;
&lt;TABLE border="1" width="64%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="20%" height="47px"&gt;Competitor&lt;/TD&gt;
&lt;TD width="20%" height="47px"&gt;Material&lt;/TD&gt;
&lt;TD width="20%" height="47px"&gt;Actual Selling Price&lt;/TD&gt;
&lt;TD width="20%" height="47px"&gt;Selling Price&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;A&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;1995&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;1953&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;B&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;1995&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;1953&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;C&lt;/TD&gt;
&lt;TD height="25px"&gt;1&lt;/TD&gt;
&lt;TD height="25px"&gt;1995&lt;/TD&gt;
&lt;TD height="25px"&gt;1953&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;A&lt;/TD&gt;
&lt;TD height="25px"&gt;2&lt;/TD&gt;
&lt;TD height="25px"&gt;234&lt;/TD&gt;
&lt;TD height="25px"&gt;230&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="25px"&gt;B&lt;/TD&gt;
&lt;TD height="25px"&gt;2&lt;/TD&gt;
&lt;TD height="25px"&gt;234&lt;/TD&gt;
&lt;TD height="25px"&gt;230&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%" height="25px"&gt;C&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;&amp;nbsp;234&lt;/TD&gt;
&lt;TD width="20%" height="25px"&gt;230&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 13 Sep 2023 23:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Sum-Aggregation-issues/m-p/2116721#M1224550</guid>
      <dc:creator>vivek1864</dc:creator>
      <dc:date>2023-09-13T23:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Sum Aggregation issues</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Sum-Aggregation-issues/m-p/2116723#M1224551</link>
      <description>&lt;P&gt;Why the Aggr()?&amp;nbsp; Why not Sum(SellingPrice) or Avg(SellingPrice)?&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 23:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Sum-Aggregation-issues/m-p/2116723#M1224551</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-09-13T23:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Sum Aggregation issues</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Sum-Aggregation-issues/m-p/2116724#M1224552</link>
      <description>&lt;P&gt;I only need to see distinct values when calculating the totals. Sum will give me dups and avg will take avg of entire sales which I don't want&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 23:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Sum-Aggregation-issues/m-p/2116724#M1224552</guid>
      <dc:creator>vivek1864</dc:creator>
      <dc:date>2023-09-13T23:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Sum Aggregation issues</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Sum-Aggregation-issues/m-p/2117111#M1224561</link>
      <description>&lt;P&gt;You have multiple occurrences of selling price? You seem to be taking care of that with Sum(Distinct...&lt;/P&gt;
&lt;P&gt;I'm not understanding your data. Can you post some sample data?&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 18:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Sum-Aggregation-issues/m-p/2117111#M1224561</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-09-14T18:26:10Z</dc:date>
    </item>
  </channel>
</rss>

