<?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 AGGR Odd Behavior? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-Odd-Behavior/m-p/188935#M505338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. Attached is an example QVW with data for just one subscriber.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2009 20:49:36 GMT</pubDate>
    <dc:creator>markmccoid</dc:creator>
    <dc:date>2009-09-17T20:49:36Z</dc:date>
    <item>
      <title>AGGR Odd Behavior?</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Odd-Behavior/m-p/188933#M505336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;First, what I'm trying to accomplish is to take the Monthly Profit (Profit) for a Customer and use it to count how many customers where UNProfitable that month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(IF(AGGR(SUM(Profit),Month, Customer) &amp;lt; 0,1,0))&lt;/P&gt;&lt;P&gt;This works fine when the chart has Month in its dimensions, but when I collapse to Year, it will return the number of months a customer was UNprofitable.&lt;/P&gt;&lt;P&gt;So I thought I would just create a chart without months and use this expression:&lt;/P&gt;&lt;P&gt;SUM(IF(AGGR(SUM(Profit), Customer) &amp;lt; 0,1,0))&lt;/P&gt;&lt;P&gt;Works fine except I noticed that when I leave the month in the dimensions, the result for each month/subscriber is different. I would have through that it would be the same since the aggregation is over the customer.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-436_sourceID:436" /&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on how I could get one expression to work for both the expanded and collapsed states and/or why the above behavior is happening with AGGR?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 03:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Odd-Behavior/m-p/188933#M505336</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2009-09-17T03:28:55Z</dc:date>
    </item>
    <item>
      <title>AGGR Odd Behavior?</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Odd-Behavior/m-p/188934#M505337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you post an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 07:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Odd-Behavior/m-p/188934#M505337</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-09-17T07:43:33Z</dc:date>
    </item>
    <item>
      <title>AGGR Odd Behavior?</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Odd-Behavior/m-p/188935#M505338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. Attached is an example QVW with data for just one subscriber.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 20:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Odd-Behavior/m-p/188935#M505338</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2009-09-17T20:49:36Z</dc:date>
    </item>
  </channel>
</rss>

