<?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 Distinct Values within Expression on a Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Distinct-Values-within-Expression-on-a-Chart/m-p/644984#M1092917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use "distinct" in sum:&lt;/P&gt;&lt;P&gt;sum(distinct Header3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 13:35:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-23T13:35:49Z</dc:date>
    <item>
      <title>How to Sum Distinct Values within Expression on a Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Distinct-Values-within-Expression-on-a-Chart/m-p/644983#M1092916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;I am creating a Chart, Lines with Bars. The lines are a sum of a column this is easy to do. But the bars need to be the sum of distinct values of certain column.&lt;BR /&gt;For example:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="199" style="border: 1px solid rgb(0, 0, 0); width: 288px; height: 199px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;4/1/2014&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A.1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4/1/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A.1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4/1/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A.2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5/1/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A.3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5/1/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A.3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5/1/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A.3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5/1/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A.3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is for each month in the chart the Bar will be the distinct sum of Header3. So lets say the user choose A.1 and A.2&amp;nbsp; from a list box for just April 2014, the distinct values of Header 3 are 5 + 25 = 30 and would be the value of the bar, I do not want 5 +5 + 25.&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 13:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-Distinct-Values-within-Expression-on-a-Chart/m-p/644983#M1092916</guid>
      <dc:creator />
      <dc:date>2014-05-23T13:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum Distinct Values within Expression on a Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Distinct-Values-within-Expression-on-a-Chart/m-p/644984#M1092917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use "distinct" in sum:&lt;/P&gt;&lt;P&gt;sum(distinct Header3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 13:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-Distinct-Values-within-Expression-on-a-Chart/m-p/644984#M1092917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-23T13:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum Distinct Values within Expression on a Chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Distinct-Values-within-Expression-on-a-Chart/m-p/644985#M1092918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You it worked, awesome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 13:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-Distinct-Values-within-Expression-on-a-Chart/m-p/644985#M1092918</guid>
      <dc:creator />
      <dc:date>2014-05-23T13:42:52Z</dc:date>
    </item>
  </channel>
</rss>

