<?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 Zeros by Set Analysis or If Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213755#M867897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(Sale'sExpressionHere = 0, 1, 0), MonthYear, Region, Company))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2016 15:38:41 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-06T15:38:41Z</dc:date>
    <item>
      <title>Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213751#M867893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Could you please advise me how to count ZEROs by set analysis or if statement.?&lt;/P&gt;&lt;P&gt;I am using the below statement but both of them did not work.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; =0,1)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Farrukh&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213751#M867893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213752#M867894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'Did not work' is not a good description of what you expect to see and what you got instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you describe your model, data, context of the expressions a bit more detailed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if Sale values are floating point values, they might differ slightly from zero.&lt;/P&gt;&lt;P&gt;Or are you looking for counting NULL?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213752#M867894</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-06T15:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213753#M867895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three dimensions&lt;/P&gt;&lt;P&gt;MonthYear&lt;/P&gt;&lt;P&gt;Region&lt;/P&gt;&lt;P&gt;Company&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Sale with #,##0.000&amp;nbsp; format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I'm only counting Zeros (0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Farrukh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213753#M867895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-06T15:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213754#M867896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is "Sale" a field in your data model? How do its values look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213754#M867896</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-06T15:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213755#M867897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(Sale'sExpressionHere = 0, 1, 0), MonthYear, Region, Company))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213755#M867897</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-06T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213756#M867898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145781_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213756#M867898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-06T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213757#M867899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Luck yet with the above statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213757#M867899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-06T15:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213758#M867900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are no zeros in the above image that you have posted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213758#M867900</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-06T15:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213759#M867901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Sale is a field in your data model and the above table shows its values, then there are no zero Sale values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you expect to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213759#M867901</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-06T15:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213760#M867902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its a sample snapshot. there are zeros. in the selected month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213760#M867902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-06T15:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213761#M867903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I don't understand what you are talking about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213761#M867903</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-06T15:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213762#M867904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try as below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;count({&amp;lt;company = {"=Sum(Sale)=0"}&amp;gt;}company)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 16:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213762#M867904</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-06T16:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213763#M867905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached sample, there is a sum of last 12 months with a Cyclic Group, I tried all the statements as you guys suggested above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to count only zeros and want to ignore null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please advise me r !elated to this query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Farrukh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 17:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213763#M867905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-06T17:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213764#M867906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;I attached the sample data at Sunny's reply.&lt;/P&gt;&lt;P&gt;Can you please have a look.&lt;/P&gt;&lt;P&gt;Farrukh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 17:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213764#M867906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-06T17:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213765#M867907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Farrukh Shaikh wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi Stefan,&lt;/P&gt;
&lt;P&gt;I attached the sample data at Sunny's reply.&lt;/P&gt;
&lt;P&gt;Can you please have a look.&lt;/P&gt;
&lt;P&gt;Farrukh&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Sorry, I can't see any attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 17:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213765#M867907</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-06T17:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213766#M867908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here you go! sample data is attached!&lt;/P&gt;&lt;P&gt;Farrukh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213766#M867908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T09:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213767#M867909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;I think its sorted. I used the below logic with set analysis, could you please advise me is it correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Date(MonthStart(AddMonths(Min(SaleDate),-11)),'YYYYMM'))&amp;lt;=$(=Date(MonthStart(AddMonths(Max(SaleDate),0)),'YYYYMM'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;+1) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213767#M867909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T09:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213768#M867910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct? Hard to tell without really knowing what you need to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to count the records, I would probably write your expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f2f2f2; color: #0000ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f2f2f2; color: #800000;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f2f2f2; color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f2f2f2; color: #800000;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f2f2f2; color: #800000;"&gt;"0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f2f2f2; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f2f2f2; color: #800000;"&gt;"&amp;gt;=$(=Date(MonthStart(AddMonths(Min(SaleDate),-11)),'YYYYMM'))&amp;lt;=$(=Date(MonthStart(AddMonths(Max(SaleDate),0)),'YYYYMM'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f2f2f2; color: #800000;"&gt;Sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if the YearMonth filter is &lt;EM&gt;correct&lt;/EM&gt;, but if all your tests pass, then your expression is probably fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213768#M867910</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-07T09:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213769#M867911</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;Is it that you want the sum of sales for the Month-Year &amp;amp; Region to be zero?&lt;/P&gt;&lt;P&gt;if so you can try this expression -&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Year=, Month=, YearMonth={"&amp;gt;=$(=Date(MonthStart(AddMonths(Min(SaleDate),-11)),'YYYYMM'))&amp;lt;=$(=Date(MonthStart(AddMonths(Max(SaleDate),0)),'YYYYMM'))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;if(aggr(Sum({$&amp;lt;Year=, Month=, YearMonth={"&amp;gt;=$(=Date(MonthStart(AddMonths(Min(SaleDate),-11)),'YYYYMM'))&amp;lt;=$(=Date(MonthStart(AddMonths(Max(SaleDate),0)),'YYYYMM'))"}&amp;gt;} Sale), MonthYear, Region)=0,1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 10:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213769#M867911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T10:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count Zeros by Set Analysis or If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213770#M867912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Farrukh shaikh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should work for you&lt;/P&gt;&lt;P&gt;=count(sales) - count({&amp;lt;sales = {'&amp;lt;&amp;gt;0'}&amp;gt;} sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 10:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Zeros-by-Set-Analysis-or-If-Statement/m-p/1213770#M867912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-07T10:36:49Z</dc:date>
    </item>
  </channel>
</rss>

