<?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 problem with aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276703#M103200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, i've got e big problem....&lt;/P&gt;&lt;P&gt;I'm trying to apply aggr function on a big data set on qv project(over 13.000.000 records) but something'wrong and qv goes in crash, this is my function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=NUM(count({$&amp;lt; date_in_e2e=, date_out_e2e=, date_ava=&amp;gt;} distinct if(date_in_e2e&amp;gt;=date_lo and date_in_e2e&amp;lt;=date_hi and flag_ultimo_aggiornamento=1 and&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; AGGR(count(distinct codice), codice_cliente) &amp;gt;5 and AGGR(count(distinct codice), codice_cliente) &amp;lt;10&lt;/STRONG&gt;&lt;/SPAN&gt;, codice_cliente)), '#.##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qv not responding and i've to close and restart the pc !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is on a pivot chart with one dimension and one expression(this one)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls, may you help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2011 07:37:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-13T07:37:31Z</dc:date>
    <item>
      <title>problem with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276703#M103200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, i've got e big problem....&lt;/P&gt;&lt;P&gt;I'm trying to apply aggr function on a big data set on qv project(over 13.000.000 records) but something'wrong and qv goes in crash, this is my function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=NUM(count({$&amp;lt; date_in_e2e=, date_out_e2e=, date_ava=&amp;gt;} distinct if(date_in_e2e&amp;gt;=date_lo and date_in_e2e&amp;lt;=date_hi and flag_ultimo_aggiornamento=1 and&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; AGGR(count(distinct codice), codice_cliente) &amp;gt;5 and AGGR(count(distinct codice), codice_cliente) &amp;lt;10&lt;/STRONG&gt;&lt;/SPAN&gt;, codice_cliente)), '#.##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qv not responding and i've to close and restart the pc !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is on a pivot chart with one dimension and one expression(this one)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls, may you help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 07:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276703#M103200</guid>
      <dc:creator />
      <dc:date>2011-07-13T07:37:31Z</dc:date>
    </item>
    <item>
      <title>problem with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276704#M103201</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;seems a complex formula. Best is to build it up piece by piece to be sure all underlying pieces gives the expected rsult. &lt;BR /&gt;For instance make a column with:&lt;/P&gt;&lt;P&gt;expr1: AGGR(count(distinct codice), codice_cliente)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then &lt;/P&gt;&lt;P&gt;Expr2: &lt;/P&gt;&lt;P&gt;=NUM(count({$&amp;lt; date_in_e2e=, date_out_e2e=, date_ava=&amp;gt;} distinct if(date_in_e2e&amp;gt;=date_lo and date_in_e2e&amp;lt;=date_hi and flag_ultimo_aggiornamento=1 and&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; column(1) &amp;gt;5 and column(1)&lt;/STRONG&gt;&lt;/SPAN&gt;), '#.##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make express1 invisible if you do not want to see it but to start you will see at least if the value calculated is correct. Alos it should improve performance as you aggr only once instead of twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 07:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276704#M103201</guid>
      <dc:creator />
      <dc:date>2011-07-13T07:51:11Z</dc:date>
    </item>
    <item>
      <title>problem with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276705#M103202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried your suggestion, but something's wrong, the new expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=NUM(count({$&amp;lt; date_in_e2e=, date_out_e2e=, date_ava=&amp;gt;} distinct &lt;/P&gt;&lt;P&gt;if(date_in_e2e&amp;gt;=date_lo and date_in_e2e&amp;lt;=date_hi and flag_ultimo_aggiornamento=1 and (column(1) &amp;gt;0 and column(1)&amp;lt;5), '#.##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's on second expression, the first is : AGGR(count(distinct codice), codice_cliente)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it give always null values.....&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 08:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276705#M103202</guid>
      <dc:creator />
      <dc:date>2011-07-13T08:44:28Z</dc:date>
    </item>
    <item>
      <title>problem with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276706#M103203</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;Hard to help as such. Can you add the application with limited data and just the chart concerned? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it work without the set analyses? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 08:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276706#M103203</guid>
      <dc:creator />
      <dc:date>2011-07-13T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276707#M103204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i attacched a small version of the main project(in the first post), with few datas, as you can see in this case all works fine on the first sheet(i made it first i open post on forum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a new sheet where there are your suggestions(i hope i have done correctly), pls take a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunatly, If i load entire db data qv goes in crash caused by aggr function, is there another way to obtain the same result without aggr?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx a lot for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 10:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276707#M103204</guid>
      <dc:creator />
      <dc:date>2011-07-13T10:35:18Z</dc:date>
    </item>
    <item>
      <title>problem with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276708#M103205</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 need to remove the last 3 columns and tehn you are starting to have some results. &lt;BR /&gt;Solve formula by formula...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 11:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-aggr-function/m-p/276708#M103205</guid>
      <dc:creator />
      <dc:date>2011-07-13T11:14:46Z</dc:date>
    </item>
  </channel>
</rss>

