<?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: Aggregation within the count function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058567#M354657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works, I was trying Count({&amp;lt;KPI_name={"$(=avg(KPI_value))&amp;lt;1"}&amp;gt;} Distinct KPI_name), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't know why that dont't work, &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 11:56:00 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2016-03-01T11:56:00Z</dc:date>
    <item>
      <title>Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058564#M354654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hello friends&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For every Date I want count KPI_names where avg KPI_value by KPI_name &amp;lt;1&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try this expression, but it doesnt work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= count ( {&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;aggr(avg(KPI_value), KPI_name) ={'&amp;lt;1'}&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;distinct &lt;/SPAN&gt;KPI_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #333333;"&gt;Let me know if&amp;nbsp; anyone has idea or decision of this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #333333;"&gt;Ruslan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 08:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058564#M354654</guid>
      <dc:creator />
      <dc:date>2016-03-01T08:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058565#M354655</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(If(Aggr(Avg(KPI_value), KPI_name) &amp;lt;= 1, 1, 0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(If(Aggr(NODISTINCT Avg(KPI_value), KPI_name) &amp;lt;= 1, 1, 0))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 11:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058565#M354655</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-01T11:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058566#M354656</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;SPAN style="font-family: 'courier new', courier;"&gt;=count({&amp;lt;KPI_name={"=avg(KPI_value)&amp;lt;1"}&amp;gt;}DISTINCT KPI_name)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 11:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058566#M354656</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-03-01T11:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058567#M354657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works, I was trying Count({&amp;lt;KPI_name={"$(=avg(KPI_value))&amp;lt;1"}&amp;gt;} Distinct KPI_name), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't know why that dont't work, &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 11:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058567#M354657</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-01T11:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058568#M354658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need dollar sign expansion for search string such as &lt;STRONG&gt;Avg(KPI_value) &amp;lt; 1&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 11:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058568#M354658</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-01T11:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058569#M354659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the first expression works, but when i use it in pivot_table or in histogram i can see the values only for selected date or the last available date (14.02.2016) when the date is not selected. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="table.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116828_table.png" style="height: 196px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 14:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058569#M354659</guid>
      <dc:creator />
      <dc:date>2016-03-03T14:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058570#M354660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the other expression:&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;=Sum(If(Aggr(NODISTINCT Avg(KPI_value), KPI_name) &amp;lt;= 1, 1, 0))&lt;/STRONG&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;&lt;BR /&gt;&lt;/STRONG&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;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116864_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 17:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058570#M354660</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-03T17:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058571#M354661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, &lt;/P&gt;&lt;P&gt;above expression sums&amp;nbsp; KPIs that are less then 1 and show it at every bar in hystogram&lt;/P&gt;&lt;P&gt;Actually there are 2 KPIs&amp;nbsp; &amp;lt;&amp;nbsp; 1 at 07.02.2016 and 4 KPIs &amp;lt;1 at 14.02.2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116934_test2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 08:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058571#M354661</guid>
      <dc:creator />
      <dc:date>2016-03-04T08:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058572#M354662</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 not use $(), it evaluates the expression and replaces it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count({&amp;lt;KPI_name={"$(=avg(KPI_value))&amp;lt;1"}&amp;gt;} Distinct KPI_name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The above expression becomes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Count({&amp;lt;KPI_name={"Some Value"}&amp;gt;} Distinct KPI_name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 08:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058572#M354662</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-03-04T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058573#M354663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(If(Aggr(Avg(KPI_value), KPI_name, Date) &amp;lt;= 1, 1, 0))&lt;/STRONG&gt;&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/116966_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 10:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058573#M354663</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-04T10:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation within the count function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058574#M354664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for provided solution! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 06:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-within-the-count-function/m-p/1058574#M354664</guid>
      <dc:creator />
      <dc:date>2016-03-09T06:40:57Z</dc:date>
    </item>
  </channel>
</rss>

