<?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 Relating Aggr with If (Uncertain behavior) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Relating-Aggr-with-If-Uncertain-behavior/m-p/209983#M64766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I want a report of Status based analysis. The report should be able to give the report for the "OPEN" or &amp;lt;&amp;gt;3 status of IDs. The Staus need to be calculated based on selection. I have tried it using AGGR function but with some unceratin output. i am attaching my sample application, please have a look at it and help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Dec 2010 06:24:38 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2010-12-02T06:24:38Z</dc:date>
    <item>
      <title>Relating Aggr with If (Uncertain behavior)</title>
      <link>https://community.qlik.com/t5/QlikView/Relating-Aggr-with-If-Uncertain-behavior/m-p/209983#M64766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I want a report of Status based analysis. The report should be able to give the report for the "OPEN" or &amp;lt;&amp;gt;3 status of IDs. The Staus need to be calculated based on selection. I have tried it using AGGR function but with some unceratin output. i am attaching my sample application, please have a look at it and help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 06:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relating-Aggr-with-If-Uncertain-behavior/m-p/209983#M64766</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-02T06:24:38Z</dc:date>
    </item>
    <item>
      <title>Relating Aggr with If (Uncertain behavior)</title>
      <link>https://community.qlik.com/t5/QlikView/Relating-Aggr-with-If-Uncertain-behavior/m-p/209984#M64767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anybody a clue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 10:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relating-Aggr-with-If-Uncertain-behavior/m-p/209984#M64767</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-02T10:30:33Z</dc:date>
    </item>
    <item>
      <title>Relating Aggr with If (Uncertain behavior)</title>
      <link>https://community.qlik.com/t5/QlikView/Relating-Aggr-with-If-Uncertain-behavior/m-p/209985#M64768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I suggested your 2nd post as an answer when I meant to hit reply. I didn't spent much time looking at your example, but I had a problem that took me forever to figure out and I think it is similar to your problem. Set analysis is only calculated once per table, not per row. That being said, if you want something like max([Invoice Due Date]) for each particular customer, it will not work. If you want something like &amp;lt;today()-31 inside, it will work just fine. In my case, I had to use aggr and if statements. I would try to avoid calculated dimensions at all costs because if you have a lot of data it is INCREDIBLY slow.&lt;/P&gt;&lt;P&gt;Try [DeClaim] as the dimension and this as the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr&lt;BR /&gt;(&lt;BR /&gt; if([DeDate]=max(total &amp;lt;[DeClaim]&amp;gt; [DeDate]) And [DeStatus]&amp;lt;&amp;gt;3,&lt;BR /&gt; sum([DeAmount])&lt;BR /&gt; )&lt;BR /&gt;,[DeClaim],[DeDate],[DeStatus]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that isn't want you want try this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr&lt;BR /&gt;(&lt;BR /&gt; if([DeDate]=max(total &amp;lt;[DeClaim]&amp;gt; [DeDate]),&lt;BR /&gt; if([DeStatus]&amp;lt;&amp;gt;3,&lt;BR /&gt; sum(total &amp;lt;[DeClaim]&amp;gt; [DeAmount])&lt;BR /&gt; )&lt;BR /&gt; )&lt;BR /&gt;,[DeClaim],[DeDate],[DeStatus]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty sure one of those two are what you want&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 18:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relating-Aggr-with-If-Uncertain-behavior/m-p/209985#M64768</guid>
      <dc:creator />
      <dc:date>2010-12-02T18:07:28Z</dc:date>
    </item>
    <item>
      <title>Relating Aggr with If (Uncertain behavior)</title>
      <link>https://community.qlik.com/t5/QlikView/Relating-Aggr-with-If-Uncertain-behavior/m-p/209986#M64769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jones.&lt;/P&gt;&lt;P&gt;Though i had cracked it in other way, your solution gives what i wanted, so its an alternative option for me. That's why i like you people and this community so much, SO MANY CREATIVE AND FERTILE BRAINS ARE HERE ! Once again thanks.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 09:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relating-Aggr-with-If-Uncertain-behavior/m-p/209986#M64769</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-03T09:44:52Z</dc:date>
    </item>
  </channel>
</rss>

