<?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: Expression strainge behaviour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834114#M293535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. I forgot to change the expression, the correct expression is with sum not max. But the problem still exists. I am sure that I am missing something but what??? &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, 01 Apr 2015 09:22:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-01T09:22:57Z</dc:date>
    <item>
      <title>Expression strainge behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834111#M293532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this expression max(aggr(count (LastUpdateDate), Year)) which I use to count invoices in a text object and it works fine, but when I try to use it in a straight table the results are wrong. We do not have only 3 customers. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. From the numbers I get I see that the first number (6) is the total for 2015 and not for the customer, the secend is for 2014 e.t.c., but it suppose to apply the expression to dimesion, isn't it? (It seems that it does not.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 08:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834111#M293532</guid>
      <dc:creator />
      <dc:date>2015-04-01T08:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression strainge behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834112#M293533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your textbox expression is counting the number of invoices for the year that had the most invoices. According to your data, this is 2011, which had 3318. This is only therefore a count for 2011, as this has the 'max' amount of invoices out of any of the years that you are aggregating over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you want in the table? A count of invoices for every customer for the year that had the maximum amount of invoices? Or what is It you're after?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 08:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834112#M293533</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-04-01T08:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression strainge behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834113#M293534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the same result as per your text box.. you can use below&lt;/P&gt;&lt;P&gt;max(TOTAL &amp;lt;Year&amp;gt; aggr(count (LastUpdateDate), Year))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this is not you are looking for, kindly let us know your requirement in little brief.. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 08:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834113#M293534</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-01T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expression strainge behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834114#M293535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. I forgot to change the expression, the correct expression is with sum not max. But the problem still exists. I am sure that I am missing something but what??? &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, 01 Apr 2015 09:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834114#M293535</guid>
      <dc:creator />
      <dc:date>2015-04-01T09:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression strainge behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834115#M293536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;max(aggr(count (LastUpdateDate), Year, [CRS Πελάτη])) --&amp;gt;Returns the max for customer in one year&lt;/P&gt;&lt;P&gt;max(aggr(count (LastUpdateDate), [CRS Πελάτη])) --&amp;gt; Returns the max for customer (is equal than count (LastUpdateDate) except for the total row)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 09:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834115#M293536</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-04-01T09:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression strainge behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834116#M293537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is it you actually want? Your LastUpdateDate is a counter, so you can simply use Sum(LastUpdateDate) or Count(LastUpdateDate) to return the number of invoices for each customer. Do you only want the count for each customer in a given year?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 09:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834116#M293537</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-04-01T09:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression strainge behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834117#M293538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help, but none of them works properly. I have reattach the file with the sum instead of max to see the actual expression.&lt;/P&gt;&lt;P&gt;Sorry for the confusion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 09:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834117#M293538</guid>
      <dc:creator />
      <dc:date>2015-04-01T09:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expression strainge behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834118#M293539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confused - what do you actually want to show?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want the count of invoices per customer, why can't you use Sum(LastUpdateDate) or Count(LastUpdateDate)? Your textbox is doing the exact equivalent but unnecessarily aggregating per year and then summing them all up anyway..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 10:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834118#M293539</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-04-01T10:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression strainge behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834119#M293540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen, almost the same, if I understand it right you can use:&lt;/P&gt;&lt;P&gt;sum(aggr(count (LastUpdateDate), [CRS Πελάτη]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, as said before, this is the same than a simpler "count(LastUpdateDate)"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 10:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-strainge-behaviour/m-p/834119#M293540</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-04-01T10:05:07Z</dc:date>
    </item>
  </channel>
</rss>

