<?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: Count the Sum greater than zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-the-Sum-greater-than-zero/m-p/781227#M1027542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Did you try?&lt;/P&gt;&lt;P&gt;Count({&amp;lt; TotalCharges = {"=Sum(TotalCharges) &amp;gt; 0"} &amp;gt;} DISTINCT Customer_ID)&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2015 14:55:16 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2015-02-24T14:55:16Z</dc:date>
    <item>
      <title>Count the Sum greater than zero</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-Sum-greater-than-zero/m-p/781226#M1027541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression that works: count({$&amp;lt;TotalCharges={'&amp;gt;0'}&amp;gt;} DISTINCT Customer_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem is, there are possible occurrences where the TotalCharges for a Customer_ID is posted and then backed out of the system by posting a negative. Because of this, I'd like to count only the distinct Customer_IDs that have &lt;STRONG&gt;net positive&lt;/STRONG&gt; TotalCharges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attempted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(count({$&amp;lt;TotalCharges={'&amp;gt;0'}&amp;gt;} DISTINCT Customer_ID),AcctPeriod))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where AcctPeriod is my only dimension in the chart, with no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated, I'm obviously novice trying to pick up on things as quick as possible. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 14:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-Sum-greater-than-zero/m-p/781226#M1027541</guid>
      <dc:creator />
      <dc:date>2015-02-24T14:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count the Sum greater than zero</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-Sum-greater-than-zero/m-p/781227#M1027542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Did you try?&lt;/P&gt;&lt;P&gt;Count({&amp;lt; TotalCharges = {"=Sum(TotalCharges) &amp;gt; 0"} &amp;gt;} DISTINCT Customer_ID)&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 14:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-Sum-greater-than-zero/m-p/781227#M1027542</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2015-02-24T14:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count the Sum greater than zero</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-Sum-greater-than-zero/m-p/781228#M1027543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Miguel! I am fairly certain this is correct, will vet it and reply if otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 15:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-Sum-greater-than-zero/m-p/781228#M1027543</guid>
      <dc:creator />
      <dc:date>2015-02-24T15:02:12Z</dc:date>
    </item>
  </channel>
</rss>

