<?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 Limiting Count. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269860#M1183207</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;I suggest you have to use the condition in expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(If( Count (Distinct PARTICIPANT_ID) ) &amp;gt; 25, Count (Distinct PARTICIPANT_ID) ) ) )&lt;/P&gt;&lt;P&gt;this will show only &amp;gt; 25 participants like ways&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Count(If( Count (Distinct PARTICIPANT_ID) ) &amp;lt; 25, Count (Distinct PARTICIPANT_ID) ) ) )&lt;/P&gt;&lt;P&gt;this will show only &amp;lt; 25 participants like ways&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2011 08:21:44 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2011-10-24T08:21:44Z</dc:date>
    <item>
      <title>Limiting Count.</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269858#M1183205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following fields,Participant ID, Country&amp;nbsp; and Month. I want to find total number of participants per country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the following&amp;nbsp; Definition ( Count (DISTINCT PARTICIPANT_ID) )&amp;nbsp; I could able to extract relevant information. My problem is in certain countries we have only 1 or 2 particpants. In certain countries we have more than 1000 participants. I want to extract only &amp;gt; 25 participants in chart and anything &amp;lt;25 should be summarised under Others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I implement this? (Attached file contains teh data, Country, Participants) It is difficult to see as we have more countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 08:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269858#M1183205</guid>
      <dc:creator />
      <dc:date>2011-10-24T08:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Count.</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269859#M1183206</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;I'd try the following as an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Count({&amp;lt; PARTICIPANT_ID = {"=Count(DISTINCT PARTICIPANT_ID) &amp;gt; 25"} &amp;gt;} DISTINCT PARTICIPANT_ID)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And even better creating this accumulation in the script using Peek() and Previous() as a flag field, (with values 1 if greater than 25 or 0 if less), so although the load time would be a bit slower, the chart rendering will do faster. Check &lt;A _jive_internal="true" href="https://community.qlik.com/message/110458"&gt;this thread&lt;/A&gt; among several others on how to create accumulations in the script using those functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 08:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269859#M1183206</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-24T08:18:59Z</dc:date>
    </item>
    <item>
      <title>Limiting Count.</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269860#M1183207</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;I suggest you have to use the condition in expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(If( Count (Distinct PARTICIPANT_ID) ) &amp;gt; 25, Count (Distinct PARTICIPANT_ID) ) ) )&lt;/P&gt;&lt;P&gt;this will show only &amp;gt; 25 participants like ways&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Count(If( Count (Distinct PARTICIPANT_ID) ) &amp;lt; 25, Count (Distinct PARTICIPANT_ID) ) ) )&lt;/P&gt;&lt;P&gt;this will show only &amp;lt; 25 participants like ways&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 08:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269860#M1183207</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-24T08:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Count.</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269861#M1183208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going even further, and although I don't recommend you to do this way because of the presumable poor performance of calculated dimensions, you could leave the expression as it is, but use the following as dimension in the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;If(Aggr(Count(DISTINCT PARTICIPANT_ID), PARTICIPANT_ID) &amp;gt; 25, PARTICIPANT_ID, 'Others')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check syntax, I may have missed some parentheses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 08:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269861#M1183208</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-24T08:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting Count.</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269862#M1183210</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;You can use it another ways also by aggregating the data like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(If( Count (Distinct PARTICIPANT_ID) ) &amp;gt; 25, Aggr( Count (Distinct PARTICIPANT_ID),PARTICIPANT_ID) ) ) )&lt;/P&gt;&lt;P&gt;this will show only &amp;gt; 25 participants like ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(If( Count (Distinct PARTICIPANT_ID) ) &amp;lt; 25, Aggr( Count (Distinct PARTICIPANT_ID),PARTICIPANT_ID) ) ) )&lt;/P&gt;&lt;P&gt;this will show only &amp;lt; 25 participants like ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 08:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269862#M1183210</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-24T08:33:34Z</dc:date>
    </item>
    <item>
      <title>Limiting Count.</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269863#M1183215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the Definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From:&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Count (DISTINCT PARTICIPANT_ID)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To:&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; If(Count(Distinct PARTICIPANT_ID) &amp;gt;=25, Count ( DISTINCT PARTICIPANT_ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the Graph but it is not summerised under&lt;STRONG&gt; Others&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the below Image fb1.JPG&lt;IMG alt="fb1.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8101_fb1.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp; change this to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Count(Distinct PARTICIPANT_ID) &amp;gt;=25, Aggr( Count ( DISTINCT PARTICIPANT_ID),PARTICIPANT_ID) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;CODE class="jive-code"&gt;Aggr(Count(DISTINCT PARTICIPANT_ID), PARTICIPANT_ID)&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting Graph similar to below.&amp;nbsp; except in &lt;CODE class="jive-code"&gt;Aggr(Count(DISTINCT PARTICIPANT_ID), PARTICIPANT_ID) I am getting all countries.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="fb2.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/8105_fb2.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt; PARTICIPANT_ID = {"=Count(DISTINCT PARTICIPANT_ID) &amp;gt; 25"} &amp;gt;} DISTINCT PARTICIPANT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am getting answer no data to display.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if I use&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; If(Count(Distinct PARTICIPANT_ID) &amp;gt;=25, Count ( DISTINCT PARTICIPANT_ID), 'Others')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Fb3.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/8106_Fb3.JPG" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I think we should modify the folloing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;If(Count(Distinct PARTICIPANT_ID) &amp;gt;=25, Count ( DISTINCT PARTICIPANT_ID))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;to add additional Row 'Others' and it should be incremented in condition is met. How should I implement?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Thanks&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 02:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-Count/m-p/269863#M1183215</guid>
      <dc:creator />
      <dc:date>2011-10-25T02:37:22Z</dc:date>
    </item>
  </channel>
</rss>

