<?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 if the result of count is less than a number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437960#M820307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I though too, But i am grouping because they may have multiple location for each countries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2017 16:02:16 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-08-21T16:02:16Z</dc:date>
    <item>
      <title>Count if the result of count is less than a number</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437957#M820304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;myData:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [Country, Locaton, Test&lt;/P&gt;&lt;P&gt;C1,L1,T1&lt;/P&gt;&lt;P&gt;C1,L1,T2&lt;/P&gt;&lt;P&gt;C1,L2,T3&lt;/P&gt;&lt;P&gt;C1,L2,T4&lt;/P&gt;&lt;P&gt;C1,L3,T5&lt;/P&gt;&lt;P&gt;C1,L3,T6&lt;/P&gt;&lt;P&gt;C1,L3,T7&lt;/P&gt;&lt;P&gt;C2,L4,T8&lt;/P&gt;&lt;P&gt;C2,L4,T9&lt;/P&gt;&lt;P&gt;C3,L5,T10&lt;/P&gt;&lt;P&gt;C3,L5,T11&lt;/P&gt;&lt;P&gt;C3,L5,T12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The test ids are unique&lt;/P&gt;&lt;P&gt;A location might have multiple test&lt;/P&gt;&lt;P&gt;A country might have multiple locations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I need to count by country number of test &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where count of tests per location is less than 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the above data my result should look like this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid #000000; width: 224px; height: 70px;" width="222"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you all&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-if-the-result-of-count-is-less-than-a-number/m-p/1437957#M820304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count if the result of count is less than a number</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437958#M820305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Count({&amp;lt;Locaton = {"=Count(Test) &amp;lt; 3"}&amp;gt;}Test), Country))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suppress when value is null from presentation tab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437958#M820305</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-21T15:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count if the result of count is less than a number</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437959#M820306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Anil, this should be enough&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;Locaton = {"=Count(Test) &amp;lt; 3"}&amp;gt;}Test)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming a location cannot be shared by two countries... for example L1 location is in country C1 and C2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437959#M820306</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-21T15:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count if the result of count is less than a number</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437960#M820307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I though too, But i am grouping because they may have multiple location for each countries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 16:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437960#M820307</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-21T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count if the result of count is less than a number</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437961#M820308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK the two expression should always give the same result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174109_Capture.PNG" style="height: 111px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 16:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437961#M820308</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-21T16:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count if the result of count is less than a number</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437962#M820309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haha, Yes. That is where i did. Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 16:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437962#M820309</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-21T16:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count if the result of count is less than a number</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437963#M820310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boghos, Sunny, Anil,&lt;/P&gt;&lt;P&gt;I'll be the joker in the pack and suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(if(count(Test)&amp;lt;3,count(Test)),Locaton))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has one thing in it's favour - it will return a zero value in a straight table if suppress zero values is unchecked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TH bgcolor="#f5f5f5" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;sum(aggr(if(count(Test)&amp;lt;3,count(Test)),Locaton))&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;C1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;4&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;C2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;C3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TH bgcolor="#f5f5f5" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;count({&amp;lt;Locaton ={"=count(Test)&amp;lt;3"}&amp;gt;}Test)&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;C1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;4&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;C2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's not important to show the zero value then the suggestions of Anil and Sunny are better than this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 16:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437963#M820310</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-21T16:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count if the result of count is less than a number</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437964#M820311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;Expression without Aggr() doesn't show C3 = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 16:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437964#M820311</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-08-21T16:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count if the result of count is less than a number</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437965#M820312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it, I didn't see because I had two expression... might be easy to use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Locaton = {"=Count(Test) &amp;lt; 3"}&amp;gt;}Test) + Avg({1} 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of Aggr()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174111_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 16:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437965#M820312</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-21T16:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count if the result of count is less than a number</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437966#M820313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with little scripting you can make the expression more simpler and easy to use with other set modifiers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myData:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [Country, Locaton, Test&lt;/P&gt;&lt;P&gt;C1,L1,T1&lt;/P&gt;&lt;P&gt;C1,L1,T2&lt;/P&gt;&lt;P&gt;C1,L2,T3&lt;/P&gt;&lt;P&gt;C1,L2,T4&lt;/P&gt;&lt;P&gt;C1,L3,T5&lt;/P&gt;&lt;P&gt;C1,L3,T6&lt;/P&gt;&lt;P&gt;C1,L3,T7&lt;/P&gt;&lt;P&gt;C2,L4,T8&lt;/P&gt;&lt;P&gt;C2,L4,T9&lt;/P&gt;&lt;P&gt;C3,L5,T10&lt;/P&gt;&lt;P&gt;C3,L5,T11&lt;/P&gt;&lt;P&gt;C3,L5,T12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(myData)&lt;/P&gt;&lt;P&gt;LOAD Locaton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(Test) as CountTest&lt;/P&gt;&lt;P&gt; Resident myData&lt;/P&gt;&lt;P&gt; Group by Locaton;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;CountTest={'&amp;lt;3'}&amp;gt;}Test)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;Uncheck suppress zero option in chart if you want to show zero value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 17:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-the-result-of-count-is-less-than-a-number/m-p/1437966#M820313</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-21T17:11:35Z</dc:date>
    </item>
  </channel>
</rss>

