<?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: aggr in count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802990#M283494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Baru,&lt;/P&gt;&lt;P&gt;Can you elaborate your Query. As you said aggregation by region is giving count 0 . But&amp;nbsp; this should give the count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2015 12:40:17 GMT</pubDate>
    <dc:creator>timanshu</dc:creator>
    <dc:date>2015-02-27T12:40:17Z</dc:date>
    <item>
      <title>aggr in count</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802983#M283487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show count(products) based on 'sales &amp;lt; target'&lt;/P&gt;&lt;P&gt;exp : if(sales&amp;lt;target,count(products))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; width: 48pt;" width="64"&gt;region&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 48pt;" width="64"&gt;country&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 48pt;" width="64"&gt;products&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 48pt;" width="64"&gt;target&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 48pt;" width="64"&gt;sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;a&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;p1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;b&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;p2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;c&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;p1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl63" height="20" style="height: 15.0pt; border-top: none;"&gt;d&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;p4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here for product 'p1', region 'c' sales is less than the target,but it aggregated with region 'a' .count it is showing 0, because target is aggr .&lt;/P&gt;&lt;P&gt;i want to show this in text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 12:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802983#M283487</guid>
      <dc:creator />
      <dc:date>2015-02-27T12:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: aggr in count</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802984#M283488</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;Can you post your complete expression which you are trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 12:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802984#M283488</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-02-27T12:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: aggr in count</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802985#M283489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try count({&amp;lt;products={"=sum(sales)&amp;lt;sum(target)"}&amp;gt;}products)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 12:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802985#M283489</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-02-27T12:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: aggr in count</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802986#M283490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i am using this exp;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;products={'=sum(sales)&amp;lt;target'}&amp;gt;}products)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 12:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802986#M283490</guid>
      <dc:creator />
      <dc:date>2015-02-27T12:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: aggr in count</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802987#M283491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;thanks for the reply,&lt;/P&gt;&lt;P&gt;it value showing '2',but it should be 1,because for region'c' is only not reached the target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 12:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802987#M283491</guid>
      <dc:creator />
      <dc:date>2015-02-27T12:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: aggr in count</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802988#M283492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry if i select products 'p1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 12:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802988#M283492</guid>
      <dc:creator />
      <dc:date>2015-02-27T12:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: aggr in count</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802989#M283493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's very interesting. It's showing 1 as result here based on the example data you posted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 12:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802989#M283493</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-02-27T12:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: aggr in count</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802990#M283494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Baru,&lt;/P&gt;&lt;P&gt;Can you elaborate your Query. As you said aggregation by region is giving count 0 . But&amp;nbsp; this should give the count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 12:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802990#M283494</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-02-27T12:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: aggr in count</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802991#M283495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an alternate state&lt;/P&gt;&lt;P&gt;Setting&amp;nbsp; - Document Properties-Alternate state—Add..&lt;/P&gt;&lt;P&gt;And then go to the textbox with the expression Gysbert has provided and choose from dropdown this State&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/79435_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79434_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 14:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-in-count/m-p/802991#M283495</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-02-27T14:42:55Z</dc:date>
    </item>
  </channel>
</rss>

