<?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: Re: AGGR /GROUPING ISSUE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567693#M685815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx for the Response, but there is one more Condition need to add&amp;nbsp; before we form the groups.&lt;/P&gt;&lt;P&gt;IN the attached Excel Sheet Occurrence No 6197 have more than One Claims Closed , SO we need the Occurences with offcourse atleast 1 [Claim Status Code]='CLOSED' and atleast 1 CloseAdmin_Year=&amp;nbsp; the User Selected (Year). In the Attached Excel File, the user selected the Year='2013'In current situation for example if the User selects (Year) from the List Box Available. We should get the Occurences with atleast 1 User Selected Year as CloseAdmin_Year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Jan 2014 01:01:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-26T01:01:29Z</dc:date>
    <item>
      <title>AGGR /GROUPING ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567690#M685811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached you will find this Straight Table. What I am trying to do is that I have Claim No and Occurence No. several Claims are tied together by the Occurence No. For Example Occurence NO&amp;nbsp; 6773 has&amp;nbsp; several Claim No's.&lt;/P&gt;&lt;P&gt;The Conditions to apply are&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1)Atleast one of the [CLAIM NO] within the SAME [OCCURRENCE NO] has a [CLAIM STATUS CODE] ='CLOSED'&lt;BR /&gt;&amp;nbsp; In the Attached OUTPUT [OCCURRENCE NO] 6773 has 5 [CLAIM NO]'S Linked to it and 3 of them have the &lt;BR /&gt; [CLAIM STATUS CODE] ='CLOSED'.&lt;/P&gt;&lt;P&gt;Once Condition (1) is satisfied then&lt;/P&gt;&lt;P&gt;2))I need all the distinct Count&amp;nbsp; and Sum of Occurence No's where Sum(NET_INDEMNITY_PAID)&amp;nbsp; of all Claims&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; within the SAME OCCURENCE NO is&amp;nbsp;&amp;nbsp; Less than 1000000 and greater than 0. For Example in the Attached File. &lt;BR /&gt;&amp;nbsp;&amp;nbsp; [OCCURRENCE NO] 6773&amp;nbsp; SATISFIIES THE 1ST CONDITION WITH atleast one [CLAIM STATUS CODE] ='CLOSED' and has&amp;nbsp;&amp;nbsp;&amp;nbsp; a NET_INDEMNITY_PAID OF $50,000, SO I should get a count 1 for this Occurence and SUm of $50,000.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried using the Range Sum Function Grouping by [Occurence No] as Follows but not the result I wanted.&lt;BR /&gt;Rangesum(if(Aggr(Sum(NET_INDEMNITY_PAID),[Occurence No])&amp;gt;0 and Aggr(Sum(NET_INDEMNITY_PAID),[Occurence No])&amp;lt;1000000,Count(DISTINCT [Occurence No]),0),0,NoOfRows())&lt;/P&gt;&lt;P&gt;Mr.Gysbert Wassenaar here on Community gave a good suggestion to use &lt;/P&gt;&lt;P&gt;count({&amp;lt;[Occurence No]={'=sum(NET_INDEMNITY_PAID)&amp;gt;0 and sum(NET_INDEMNITY_PAID)&amp;lt;1000000'}&amp;gt;} distinct [Occurence No])&lt;/P&gt;&lt;P&gt;It works partially. I am thinking that I NEED TO create a GROUP of OCCURRENCE NO AND&amp;nbsp; I might need to use the AGGR function but dont know exactly how to use it&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Its Complicated and I Hope I Explained it the Best I can. Any Help is appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 22:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567690#M685811</guid>
      <dc:creator />
      <dc:date>2014-01-24T22:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR /GROUPING ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567691#M685813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ray,&lt;/P&gt;&lt;P&gt;Please check out the attached file.&lt;/P&gt;&lt;P&gt;I created a table called Test which would be linked to your Excel table through Occurence number (key). Let me know if Test table meets your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 22:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567691#M685813</guid>
      <dc:creator />
      <dc:date>2014-01-24T22:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR /GROUPING ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567692#M685814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray, First create the calculated Dimension like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF( aggr(count({&amp;lt;[CLAIM STATUS CODE] ={'CLOSED'}&amp;gt;}CLAIM_CODE),&amp;nbsp; OCCURENCE_NO) &amp;gt; 0 , OCCURENCE_NO ) --&amp;gt; this cond give all the OCCURENCE_NO having atleast one Closed status code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create your expression &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 23:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567692#M685814</guid>
      <dc:creator />
      <dc:date>2014-01-24T23:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: AGGR /GROUPING ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567693#M685815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx for the Response, but there is one more Condition need to add&amp;nbsp; before we form the groups.&lt;/P&gt;&lt;P&gt;IN the attached Excel Sheet Occurrence No 6197 have more than One Claims Closed , SO we need the Occurences with offcourse atleast 1 [Claim Status Code]='CLOSED' and atleast 1 CloseAdmin_Year=&amp;nbsp; the User Selected (Year). In the Attached Excel File, the user selected the Year='2013'In current situation for example if the User selects (Year) from the List Box Available. We should get the Occurences with atleast 1 User Selected Year as CloseAdmin_Year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jan 2014 01:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567693#M685815</guid>
      <dc:creator />
      <dc:date>2014-01-26T01:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: AGGR /GROUPING ISSUE</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567694#M685816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx for the Response,but I cant use the Calculated Dimension cuz I will use this number in a Value List Dimension. So It has to done in the Script like form the Group or do in the Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one more Condition need to add&amp;nbsp; before we form the groups.&lt;/P&gt;&lt;P&gt;IN the attached Excel Sheet Occurrence No 6197 have more than One Claims Closed , SO we need the Occurences with offcourse atleast 1 [Claim Status Code]='CLOSED' and atleast 1 CloseAdmin_Year=&amp;nbsp; the User Selected (Year). In the Attached Excel File, the user selected the Year='2013'In current situation for example if the User selects (Year) from the List Box Available. We should get the Occurences with atleast 1 User Selected Year as CloseAdmin_Year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jan 2014 01:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-GROUPING-ISSUE/m-p/567694#M685816</guid>
      <dc:creator />
      <dc:date>2014-01-26T01:33:53Z</dc:date>
    </item>
  </channel>
</rss>

