<?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 Help with Sum distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Sum-distinct/m-p/334646#M493267</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 have the following working exp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;Type -= {'FLEET'}&amp;gt;} if(TD_Commision = [Commission Number],1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is, there could be repeated data where for example&amp;nbsp; TD_Commission can occur 20 times, and I am strugling how to add distinct funtion to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Jun 2012 10:23:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-02T10:23:13Z</dc:date>
    <item>
      <title>Help with Sum distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Sum-distinct/m-p/334646#M493267</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 have the following working exp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;Type -= {'FLEET'}&amp;gt;} if(TD_Commision = [Commission Number],1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is, there could be repeated data where for example&amp;nbsp; TD_Commission can occur 20 times, and I am strugling how to add distinct funtion to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2012 10:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Sum-distinct/m-p/334646#M493267</guid>
      <dc:creator />
      <dc:date>2012-06-02T10:23:13Z</dc:date>
    </item>
    <item>
      <title>Help with Sum distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Sum-distinct/m-p/334647#M493268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you just add DISTINCT in the expression? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;sum(DISTINCT {$ &amp;lt;Type -= {'FLEET'}&amp;gt;} if(TD_Commision = [Commission Number],1))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2012 20:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Sum-distinct/m-p/334647#M493268</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2012-06-03T20:28:22Z</dc:date>
    </item>
  </channel>
</rss>

