<?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 Count,Aggr and IF - Counting zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Aggr-and-IF-Counting-zero/m-p/1229478#M872932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what I'm doing wrong. I have this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(AGGR(IF($(PRECO_UNIT_SKU)&amp;gt;=$(FAIXA_1) AND $(PRECO_UNIT_SKU)&amp;lt;=$(FAIXA_2),PRODCOR&lt;STRONG&gt;,&lt;SPAN style="color: #ff0000;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;,PRODCOR))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put the "&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;", in that condition the result of the expression is "&lt;SPAN style="color: #ff0000;"&gt;1"&lt;SPAN style="color: #000000;"&gt; , when I remove the "&lt;STRONG style=": ; color: #ff0000;"&gt;0&lt;/STRONG&gt;", the result of the expression is "0".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;But, I think that the number 1 &lt;SPAN lang="en"&gt;which has been shown, is the count of "0", not the item that need to be count.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Please, any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Count,Aggr and IF - Counting zero</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Aggr-and-IF-Counting-zero/m-p/1229478#M872932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what I'm doing wrong. I have this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(AGGR(IF($(PRECO_UNIT_SKU)&amp;gt;=$(FAIXA_1) AND $(PRECO_UNIT_SKU)&amp;lt;=$(FAIXA_2),PRODCOR&lt;STRONG&gt;,&lt;SPAN style="color: #ff0000;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;,PRODCOR))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put the "&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;", in that condition the result of the expression is "&lt;SPAN style="color: #ff0000;"&gt;1"&lt;SPAN style="color: #000000;"&gt; , when I remove the "&lt;STRONG style=": ; color: #ff0000;"&gt;0&lt;/STRONG&gt;", the result of the expression is "0".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;But, I think that the number 1 &lt;SPAN lang="en"&gt;which has been shown, is the count of "0", not the item that need to be count.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Please, any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks!&lt;BR /&gt;&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-Aggr-and-IF-Counting-zero/m-p/1229478#M872932</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

