<?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: Conditional Count and group by in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70799#M777445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I am confused and now sure I understand your concern?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2018 15:49:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-04-20T15:49:47Z</dc:date>
    <item>
      <title>Conditional Count and group by</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70794#M777439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question I created an expression to count the event activity for list of servers &lt;BR /&gt;&lt;STRONG&gt;I'd like to return servers where number of events for each server is greater than 150 event per week&lt;/STRONG&gt;, but I'm not sure of the correct syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured out the count and condition although I'm not sure where I should place the AGGR function or if there another way to have this!&lt;/P&gt;&lt;P&gt;=COUNT({&amp;lt;SERVER = {"=(COUNT(&lt;SPAN style="font-size: 13.3333px;"&gt;SERVER &lt;/SPAN&gt;)&amp;gt;150"}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;SERVER &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if it was a table on DB it will be like this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SELECT WEEK,SERVER,count(&lt;SPAN style="font-size: 13.3333px;"&gt;SERVER&lt;/SPAN&gt;) TOTAL&lt;/P&gt;&lt;P&gt;FROM TABLE&lt;/P&gt;&lt;P&gt;GROUP BY 1,2&lt;/P&gt;&lt;P&gt;HAVING count(&lt;SPAN style="font-size: 13.3333px;"&gt;SERVER&lt;/SPAN&gt;) &amp;gt;150&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&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/Conditional-Count-and-group-by/m-p/70794#M777439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count and group by</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70795#M777440</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(If(Count(SERVER) &amp;gt; 150, Count(SERVER)), WEEK, SERVER))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 14:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70795#M777440</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-20T14:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count and group by</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70796#M777442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;May be COUNT({&amp;lt;SERVER = {"=Aggr(COUNT(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;SERVER &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;),WEEK)&amp;gt;150"}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;SERVER &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 14:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70796#M777442</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-04-20T14:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count and group by</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70797#M777443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny&lt;BR /&gt;This good, although as we used IF it will return all the servers and for those servers which less than 150 event it will be 0.&lt;/P&gt;&lt;P&gt;I need to display only the servers with more than 150 not all! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 15:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70797#M777443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T15:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count and group by</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70798#M777444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sasidhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This proposal will not show the events per each server it will display the servers with more than 150 event although the total # of event will displayed as 0 and will display the sum of servers &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 15:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70798#M777444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T15:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count and group by</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70799#M777445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I am confused and now sure I understand your concern?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 15:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-and-group-by/m-p/70799#M777445</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-20T15:49:47Z</dc:date>
    </item>
  </channel>
</rss>

