<?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 Sum with distinct (other) column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-with-distinct-other-column/m-p/266248#M100075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a table that includes 3 columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- ProjectName&lt;/P&gt;&lt;P&gt;- OrderID (unique)&lt;/P&gt;&lt;P&gt;- OrderValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have a chart/table that shows the total value of each project. Normally it would just be a case of having the name as a dimension and sum(OrderValue) as an expression, but I noticed that there are duplicate OrderIDs as each stage of the order process generates multiple rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what would be needed to be done is first select all distinct OrderIDs and then sum up the corresponding OrderValues for those rows. I tried using the aggr() function as it seemed the most obvious route, but not with much success.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2011 13:20:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-11T13:20:25Z</dc:date>
    <item>
      <title>Sum with distinct (other) column</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-with-distinct-other-column/m-p/266248#M100075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a table that includes 3 columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- ProjectName&lt;/P&gt;&lt;P&gt;- OrderID (unique)&lt;/P&gt;&lt;P&gt;- OrderValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have a chart/table that shows the total value of each project. Normally it would just be a case of having the name as a dimension and sum(OrderValue) as an expression, but I noticed that there are duplicate OrderIDs as each stage of the order process generates multiple rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what would be needed to be done is first select all distinct OrderIDs and then sum up the corresponding OrderValues for those rows. I tried using the aggr() function as it seemed the most obvious route, but not with much success.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 13:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-with-distinct-other-column/m-p/266248#M100075</guid>
      <dc:creator />
      <dc:date>2011-08-11T13:20:25Z</dc:date>
    </item>
  </channel>
</rss>

