<?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 count is greater than in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868524#M71719</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47358"&gt;@anat&lt;/a&gt; 's answer, is a great solution as it relies entirely on set analysis! I would recommend however changing the&amp;nbsp;&lt;STRONG&gt;count({&amp;lt;DT={"=count({&amp;lt;DT=&lt;SPAN style="color:#c0392b"&gt;{"SM"}&lt;/SPAN&gt;&amp;gt;}DT)&amp;gt;10"}&amp;gt;}DT)&lt;/STRONG&gt; with&amp;nbsp;&lt;STRONG&gt;count({&amp;lt;DT={"=count({&amp;lt;DT=&lt;SPAN style="color:#27ae60"&gt;{'SM'}&lt;/SPAN&gt;&amp;gt;}DT)&amp;gt;10"}&amp;gt;}DT)&lt;/STRONG&gt;. Because, otherwise you will get a "Error in expression".&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 10:17:12 GMT</pubDate>
    <dc:creator>Andrei_Cusnir</dc:creator>
    <dc:date>2021-12-09T10:17:12Z</dc:date>
    <item>
      <title>Count if count is greater than</title>
      <link>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868466#M71713</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;following question:&lt;/P&gt;
&lt;P&gt;I want to make a statement like this:&lt;/P&gt;
&lt;P&gt;Count (IF ([DateType] = 'SlideMade' AND count (DateType &amp;gt; 10) , DateType))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course this won't work, but how can i reformulate this? I want to count all DateType when the Datetuype is equal to 'slidemade' and when the count of datetype is more than 10 (to rule out days with very little production)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 08:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868466#M71713</guid>
      <dc:creator>Quentinn</dc:creator>
      <dc:date>2021-12-09T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count if count is greater than</title>
      <link>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868515#M71717</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Perhaps you can do something similar to this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. I have two different datasets:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SCREENSHOT" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/4461d117-bd0c-46a5-9af6-6c2b7c5764ee.default.PNG" /&gt;&lt;/P&gt;&lt;P&gt;a. In the first dataset, based on your requirements, the count should be &lt;STRONG&gt;11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;b. For the second dataset, based on your requirements, the count should be &lt;STRONG&gt;&lt;SPAN style="color:#2980b9"&gt;Null&lt;/SPAN&gt;()&lt;/STRONG&gt; (Because we have less than 10 records with &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;DataType2&lt;/STRONG&gt;&lt;/SPAN&gt;='&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;SlideMade&lt;/STRONG&gt;&lt;/SPAN&gt;')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I have used the same expression to create 2 &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;KPIs&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;({&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;DateType1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;={"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;SlideMade&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;"}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;DateType1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;) &amp;gt; 10, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;({&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;DateType1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;={"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;SlideMade&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;"}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;DateType1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;), &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Null&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#16a085"&gt;&lt;STRONG&gt;())&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This expression states:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Count all the records in &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;DataType1 &lt;/STRONG&gt;&lt;/SPAN&gt;field, but only where &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;DataType1&lt;/STRONG&gt;&lt;/SPAN&gt;='&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;SlideMade&lt;/STRONG&gt;&lt;/SPAN&gt;'&lt;/LI&gt;
 &lt;LI&gt;Then we are using this count in the condition and if that count is grater than 10, we show the count result&lt;/LI&gt;
 &lt;LI&gt;Otherwise, we show &lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Null()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;3. The result is as follows:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="SCREENSHOT" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/cd735fe9-dd3d-4f84-884b-6e79245eb95c.default.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see the first KPI shows the number &lt;STRONG&gt;11&lt;/STRONG&gt; and the second KPI shows &lt;STRONG&gt;Null()&lt;/STRONG&gt; since the criteria is not met.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt;&lt;STRONG&gt;I hope that this was helpful. In case I have misunderstood the use case scenario, please elaborate in detail by providing additional details. Otherwise, if it has helped you resolve the issue, please mark it as solution to give further visibility of the other community members.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868515#M71717</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2021-12-09T10:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count if count is greater than</title>
      <link>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868516#M71718</link>
      <description>&lt;P&gt;&lt;SPAN&gt;count({&amp;lt;DT={"=count({&amp;lt;DT={"SM"}&amp;gt;}DT)&amp;gt;10"}&amp;gt;}DT)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868516#M71718</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2021-12-09T10:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count if count is greater than</title>
      <link>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868524#M71719</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47358"&gt;@anat&lt;/a&gt; 's answer, is a great solution as it relies entirely on set analysis! I would recommend however changing the&amp;nbsp;&lt;STRONG&gt;count({&amp;lt;DT={"=count({&amp;lt;DT=&lt;SPAN style="color:#c0392b"&gt;{"SM"}&lt;/SPAN&gt;&amp;gt;}DT)&amp;gt;10"}&amp;gt;}DT)&lt;/STRONG&gt; with&amp;nbsp;&lt;STRONG&gt;count({&amp;lt;DT={"=count({&amp;lt;DT=&lt;SPAN style="color:#27ae60"&gt;{'SM'}&lt;/SPAN&gt;&amp;gt;}DT)&amp;gt;10"}&amp;gt;}DT)&lt;/STRONG&gt;. Because, otherwise you will get a "Error in expression".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868524#M71719</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2021-12-09T10:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count if count is greater than</title>
      <link>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868528#M71720</link>
      <description>&lt;P&gt;Thanks for the correction....&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868528#M71720</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2021-12-09T10:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count if count is greater than</title>
      <link>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868534#M71721</link>
      <description>&lt;P&gt;Your solution worked perfectly!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For some reason&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47358"&gt;@anat&lt;/a&gt;&amp;nbsp;'s soution didn't work, not sure why, thanks for the effort though!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-if-count-is-greater-than/m-p/1868534#M71721</guid>
      <dc:creator>Quentinn</dc:creator>
      <dc:date>2021-12-09T10:28:16Z</dc:date>
    </item>
  </channel>
</rss>

