<?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: Counting zeros in a range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525370#M556461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishwaranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(if(column1=0,column1)) &lt;/STRONG&gt;somehow was not giving me the count properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then i used this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If(column(4)=0,1,0) + If(column(5)=0,1,0) + If(column(6)=0,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jul 2013 08:16:49 GMT</pubDate>
    <dc:creator>abeyphilip</dc:creator>
    <dc:date>2013-07-01T08:16:49Z</dc:date>
    <item>
      <title>Counting zeros in a range</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525366#M556457</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;&lt;IMG alt="Excel_2.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/43402_Excel_2.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Please see the above excel data. I am struggling with calculation for the "Count of Zeros" column above. It has to calcualate the number of zeros for the months passed for the financial year (Apr, May and Jun). Acitivity is a column based on the "count of zeros" column value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values for these months are calcualted values (expressions) and not directly available in my data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In excel we have something like - COUNTIF(N6:X6,0), that will give you the count of 0s between N6 and X6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the different range functions available (Rangecount, rangenumericcount), but none seems to be suitable for this situation. Was wondering if any chart inter record function would do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be of great help if you could suggest something on this direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 07:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525366#M556457</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-07-01T07:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Counting zeros in a range</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525367#M556458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count(If(WildMatch(Field_Name,'0'),Field_Name))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 07:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525367#M556458</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2013-07-01T07:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Counting zeros in a range</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525368#M556459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sivaraj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this does not work because - my value is based on a calcualate value for "Field_Name".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will explain a bit more - the values under 'Apr', 'May', 'Jun' are calcuated as sum({&amp;lt;month='Apr',.,.,.&amp;gt;}Field_Name), sum({&amp;lt;month='May',.,.,.&amp;gt;}Field_Name) and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my field needs to count the zeros across these different expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 07:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525368#M556459</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-07-01T07:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Counting zeros in a range</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525369#M556460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;For--&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;month='Apr',.,.,.&amp;gt;}Field_Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write-- &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(&lt;/STRONG&gt;&lt;STRONG&gt;sum({&amp;lt;month='Apr',.,.,.&amp;gt;}Field_Name)&amp;nbsp; = 0 , count(&lt;/STRONG&gt;&lt;STRONG&gt;sum({&amp;lt;month='Apr',.,.,.&amp;gt;}Field_Name)&lt;/STRONG&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or also write this code&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(if(column1=0,column1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*********************************&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;similarly write code for other months&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 08:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525369#M556460</guid>
      <dc:creator />
      <dc:date>2013-07-01T08:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Counting zeros in a range</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525370#M556461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishwaranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(if(column1=0,column1)) &lt;/STRONG&gt;somehow was not giving me the count properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then i used this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If(column(4)=0,1,0) + If(column(5)=0,1,0) + If(column(6)=0,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 08:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-zeros-in-a-range/m-p/525370#M556461</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-07-01T08:16:49Z</dc:date>
    </item>
  </channel>
</rss>

