<?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: If statement for specific count aggregation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-statement-for-specific-count-aggregation/m-p/1077705#M17818</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 should use the count function inside the aggr function,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(aggr(Count(Fields), &amp;lt;Group by Fields&amp;gt;)&amp;lt;=3,Sum(3), ....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu Appu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Jan 2016 15:16:23 GMT</pubDate>
    <dc:creator>prabhuappu</dc:creator>
    <dc:date>2016-01-16T15:16:23Z</dc:date>
    <item>
      <title>If statement for specific count aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/If-statement-for-specific-count-aggregation/m-p/1077704#M17817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to test if the count aggregation is &amp;lt;=3. I tried putting &amp;lt;=3 but it didn't work.&amp;nbsp; If count is &amp;lt;=3, sum(3) else no equation. How can I solve this. Thanks for your help.&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14526468388222013 jive_text_macro" jivemacro_uid="_14526468388222013" modifiedtitle="true"&gt;
&lt;P&gt;If($(Tmonths)=10 or $(Tmonths)=11 or $(Tmonths)=12 &lt;/P&gt;
&lt;P&gt;and count({&amp;lt;cyear= {$(Tyear)}&amp;gt;} &lt;/P&gt;
&lt;P&gt;aggr(DISTINCT Basic,SEF,qtr,cyear,OwnerNum,BINum,PCINum,SINum,MDINum,Parcel,PType))&amp;lt;=3, &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;sum(3),&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 01:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-statement-for-specific-count-aggregation/m-p/1077704#M17817</guid>
      <dc:creator />
      <dc:date>2016-01-13T01:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: If statement for specific count aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/If-statement-for-specific-count-aggregation/m-p/1077705#M17818</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 should use the count function inside the aggr function,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(aggr(Count(Fields), &amp;lt;Group by Fields&amp;gt;)&amp;lt;=3,Sum(3), ....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu Appu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jan 2016 15:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-statement-for-specific-count-aggregation/m-p/1077705#M17818</guid>
      <dc:creator>prabhuappu</dc:creator>
      <dc:date>2016-01-16T15:16:23Z</dc:date>
    </item>
  </channel>
</rss>

