<?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: Rangesum Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559863#M686418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because you're using the expression in a straight table that also has Claim No as dimension. So you get a distinct count per Claim No value. Simply remove Claim No from the straight table or use the expression in a text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 19:08:39 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-01-23T19:08:39Z</dc:date>
    <item>
      <title>Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559860#M686415</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. Claims are tied together by the Occurence No. For Example Occurence NO&amp;nbsp; 1808 has&amp;nbsp; several Claim No's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need all the distinct Count of Occurence No's where Sum(NET_INDEMNITY_PAID)&amp;nbsp; of all Same Occurence Nos is Less than 1000000 and greater than 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the Range Sum Function Grouping by [Occurence No] as Follows but not the result I wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rangesum(if(Aggr(Sum(NET_INDEMNITY_PAID),[Occurence No])&amp;gt;0 and Aggr(Sum(NET_INDEMNITY_PAID),[Occurence No])&amp;lt;1000000,&lt;/P&gt;&lt;P&gt;Count(DISTINCT [Occurence No]),0),0,NoOfRows())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 18:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559860#M686415</guid>
      <dc:creator />
      <dc:date>2014-01-23T18:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559861#M686416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Occurence No]&lt;/SPAN&gt;={'=sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NET_INDEMNITY_PAID&lt;/SPAN&gt;)&amp;gt;0 and sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NET_INDEMNITY_PAID&lt;/SPAN&gt;)&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;1000000&lt;/SPAN&gt;'}&amp;gt;}distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Occurence No]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached qvw for an &lt;EM&gt;example&lt;/EM&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 18:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559861#M686416</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-23T18:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559862#M686417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx for the quick response,&amp;nbsp; Its better than what I had, I am still off ,if you look at the attached table using ur Expression its still counting Each Occurence No instead of doing Distinct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 18:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559862#M686417</guid>
      <dc:creator />
      <dc:date>2014-01-23T18:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559863#M686418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because you're using the expression in a straight table that also has Claim No as dimension. So you get a distinct count per Claim No value. Simply remove Claim No from the straight table or use the expression in a text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 19:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559863#M686418</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-23T19:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559864#M686419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;No Same Result, I Tried both, removing Claims from the Table and also the Text BOX. If you look at the table when I remove the Claim No, its giving me the Number of COunts for each Occurence No, its not doing the Distinct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 19:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559864#M686419</guid>
      <dc:creator />
      <dc:date>2014-01-23T19:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559865#M686420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post examples of the source data and of the result table you want. I don't think I understand what you're actually trying to achieve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 19:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559865#M686420</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-23T19:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559866#M686421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx for your Continous Help, I am almost there but still missing some Claims Numbers . Attached File will give you a better picture of what I am talking about.&amp;nbsp; For Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In&amp;nbsp; Occurence Number Column&amp;nbsp; (6773), it has Multiple Claim Numbers Assigned to it. I want the some of Net Indemnity Paid (Addition of All Claims wether OPEN OR CLOSED" on that Occurence Number , If atleast One Claim No has Claim Status Code as " CLOSED".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope I Explained it better now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 20:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559866#M686421</guid>
      <dc:creator />
      <dc:date>2014-01-24T20:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559867#M686422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a completely different question. And in the sample data you posted all Occurrence No values have at least one claim with status CLOSED. So, wildly guessing once more as to what you might actually want... see attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 14:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559867#M686422</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-31T14:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559868#M686423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; Luckily I was able to make it work as Below. I have one more issue though. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Occurence No]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'=sum(NET_INDEMNITY_PAID)&amp;gt;0 and sum(NET_INDEMNITY_PAID)&amp;lt;1000000 and Year=Max(CloseAdmin_Year)'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Occurence No]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Totally Different&amp;nbsp; Issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;How Do I do tihs in SET Analysis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If(NET_INDEMNITY_PAID&amp;gt;1000000,1000000)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 15:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559868#M686423</guid>
      <dc:creator />
      <dc:date>2014-02-04T15:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559869#M686424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't. Set analysis can be used to filter, but cannot be used for branching. But you can use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px; background-color: #f6f6f6;"&gt;rangemin(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px; background-color: #f6f6f6;"&gt;NET_I&lt;/SPAN&gt;NDEMNITY_PAID&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px; background-color: #f6f6f6;"&gt;1000000&lt;/SPAN&gt;) instead of your if statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 15:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559869#M686424</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-02-04T15:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Rangesum Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559870#M686425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also need to add the MAx Year to the statement and I am using the ValueList Dimension, is taht gonna work with it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 15:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangesum-Issue/m-p/559870#M686425</guid>
      <dc:creator />
      <dc:date>2014-02-04T15:18:49Z</dc:date>
    </item>
  </channel>
</rss>

