<?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: Simple Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663944#M1061670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Demoustier. Can this be done in an expression? I need it to work with dynamic selections&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2014 17:56:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-22T17:56:22Z</dc:date>
    <item>
      <title>Simple Count</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663940#M1061666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new so please be gentle &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I’m struggling with a simple count in QV. I’d like to count the distinct projects which have no Revenue for any year. In this case the result should be 2 (1 for ID 1 and 1 for ID 3). Can you help? I’ve attached my mockup.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="9-22-2014 10-01-54 AM.jpg" class="jive-image" src="/legacyfs/online/67347_9-22-2014 10-01-54 AM.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 16:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663940#M1061666</guid>
      <dc:creator />
      <dc:date>2014-09-22T16:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Count</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663941#M1061667</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;Either of these expression will work. I recommend using the second one because it is more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(if(Sum(Revenue) &amp;gt; 0, 1),ProjectID))&lt;/P&gt;&lt;P&gt;=Count(DISTINCT {$&amp;lt;Revenue = {"&amp;gt;0"}&amp;gt;} ProjectID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark the appropriate replies as helpful / correct so our team and other members know that your question(s) has been answered to your satisfaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS I've also move this thread to the QlikView area so it is easier for others to find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 16:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663941#M1061667</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2014-09-22T16:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Count</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663942#M1061668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 17:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663942#M1061668</guid>
      <dc:creator>demoustier</dc:creator>
      <dc:date>2014-09-22T17:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Count</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663943#M1061669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Josh, these are returning a count of 1. The correct result should be a count of 2&lt;/P&gt;&lt;P&gt;This one works though&lt;/P&gt;&lt;P&gt;Sum(Aggr(if(Sum(Revenue) = 0, 1),ProjectID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 17:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663943#M1061669</guid>
      <dc:creator />
      <dc:date>2014-09-22T17:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Count</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663944#M1061670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Demoustier. Can this be done in an expression? I need it to work with dynamic selections&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 17:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663944#M1061670</guid>
      <dc:creator />
      <dc:date>2014-09-22T17:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Count</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663945#M1061671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I miss read your question.&amp;nbsp; I thought you were looking for projects &lt;STRONG&gt;with&lt;/STRONG&gt; revenue not &lt;STRONG&gt;without&lt;/STRONG&gt; revenue.&amp;nbsp; The Aggr function will be the better choice then as you already figured out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(if(Sum(Revenue) = 0, 1),ProjectID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 18:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Count/m-p/663945#M1061671</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2014-09-22T18:04:11Z</dc:date>
    </item>
  </channel>
</rss>

