<?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 AGGREGATE FUNCTION PROBLEM in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGREGATE-FUNCTION-PROBLEM/m-p/313231#M115642</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;concat(distinct&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt; if(SUM(W_FT_VALORE_NETTO)&amp;gt;9999,100,0),&lt;/P&gt;&lt;P&gt; C_PROVINCIA_FATT&lt;/P&gt;&lt;P&gt;),'|',fieldIndex('C_PROVINCIA_FATT', C_PROVINCIA_FATT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not positive this is the exact syntax (a little hard to write this blind), but give it a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2011 15:52:11 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2011-12-20T15:52:11Z</dc:date>
    <item>
      <title>AGGREGATE FUNCTION PROBLEM</title>
      <link>https://community.qlik.com/t5/QlikView/AGGREGATE-FUNCTION-PROBLEM/m-p/313229#M115640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in trouble with this expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat( round(AGGR(SUM(W_FT_VALORE_NETTO),C_PROVINCIA_FATT)), '|',fieldIndex('C_PROVINCIA_FATT', C_PROVINCIA_FATT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression works and it gives me (for example) one result for each "C_PROVINCIA_FATT" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I add a condition as below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=concat( IF( AGGR(&amp;nbsp; SUM(&amp;nbsp; W_FT_VALORE_NETTO),C_PROVINCIA_FATT)&amp;gt;9999,'100','0'), '|',fieldIndex('C_PROVINCIA_FATT', C_PROVINCIA_FATT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's going to give not the aggregation but a lot of results as the numbers of C_PROVINCA_FATT .... &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Anybody can help me?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 07:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGREGATE-FUNCTION-PROBLEM/m-p/313229#M115640</guid>
      <dc:creator />
      <dc:date>2011-12-20T07:57:57Z</dc:date>
    </item>
    <item>
      <title>AGGREGATE FUNCTION PROBLEM</title>
      <link>https://community.qlik.com/t5/QlikView/AGGREGATE-FUNCTION-PROBLEM/m-p/313230#M115641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Your expression shows that you actualy want to see line count as the number of C_PROVINCA_FATT. &lt;/P&gt;&lt;P&gt;Since this is the right part of your Concatenation. &lt;/P&gt;&lt;P&gt;Anyway, If you want to see the distinct row count of C_PROVINCA_FATT&lt;/P&gt;&lt;P&gt;try adding Distinct as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concat( IF(AGGR(distinct SUM(W_FT_VALORE_NETTO),C_PROVINCIA_FATT)&amp;gt;9999,'100','0'), '|',fieldIndex('C_PROVINCIA_FATT', C_PROVINCIA_FATT))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 11:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGREGATE-FUNCTION-PROBLEM/m-p/313230#M115641</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2011-12-20T11:38:41Z</dc:date>
    </item>
    <item>
      <title>AGGREGATE FUNCTION PROBLEM</title>
      <link>https://community.qlik.com/t5/QlikView/AGGREGATE-FUNCTION-PROBLEM/m-p/313231#M115642</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;concat(distinct&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt; if(SUM(W_FT_VALORE_NETTO)&amp;gt;9999,100,0),&lt;/P&gt;&lt;P&gt; C_PROVINCIA_FATT&lt;/P&gt;&lt;P&gt;),'|',fieldIndex('C_PROVINCIA_FATT', C_PROVINCIA_FATT))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not positive this is the exact syntax (a little hard to write this blind), but give it a shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 15:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGREGATE-FUNCTION-PROBLEM/m-p/313231#M115642</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-12-20T15:52:11Z</dc:date>
    </item>
  </channel>
</rss>

