<?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: Set Analysis-Greater than in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than/m-p/398249#M148304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it happen that a single &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;PAT_ENC_CSN_ID&lt;/SPAN&gt; is linked to multiple AMOUNT values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you maybe using an aggregation function in column Charges?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2012 18:15:08 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-11-02T18:15:08Z</dc:date>
    <item>
      <title>Set Analysis-Greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than/m-p/398248#M148303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula I put together doesnt seem to pull in the right numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;AMOUNT={"&amp;gt;0"}&amp;gt;}DISTINCT PAT_ENC_CSN_ID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula still includes charges(AMOUNT) of zero. I am not sure why as I have the set modifier as&amp;nbsp; greater than zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this formula to only count distinct csn ids when the charge amount is greater than zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a snapshop of how the HIS Visits are displayed with the formula used above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 18:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than/m-p/398248#M148303</guid>
      <dc:creator />
      <dc:date>2012-11-02T18:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis-Greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than/m-p/398249#M148304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it happen that a single &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;PAT_ENC_CSN_ID&lt;/SPAN&gt; is linked to multiple AMOUNT values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you maybe using an aggregation function in column Charges?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 18:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than/m-p/398249#M148304</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-02T18:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis-Greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than/m-p/398250#M148305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The formula for charges is sum(AMOUNT). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A single &lt;SPAN style="color: #737373; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;PAT_ENC_CSN_ID&lt;/SPAN&gt; could very well be linked to multiple charge(AMOUNT) values. I would want to count the &lt;SPAN style="color: #737373; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;PAT_ENC_CSN_ID&lt;/SPAN&gt; everytime there is a charge related to a procedure code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I could have a&amp;nbsp; &lt;SPAN style="color: #737373; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;PAT_ENC_CSN_ID&lt;/SPAN&gt; linked to 5 different procedure codes. One of those procedure codes may have 5 different charges but would still be grouped under that single procedure code for one charge(AMOUNT). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is another screenshot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 18:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than/m-p/398250#M148305</guid>
      <dc:creator />
      <dc:date>2012-11-02T18:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis-Greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than/m-p/398251#M148306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it be that Charges are balanced (the sum(Amount) is zero, but single Amounts are like -10 and 10?)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your first attachement, the procedure codes and their Charges are collapsed for the lines in question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, could you upload a small sample file demonstrating your issue? You don't need to post real and possibly confidential data, just some mock up that comes close to your real setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess (since I don't really know your setting and complete requirement), that you just need to modify a field different from Amount, maybe filter on procedure codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Count({$&amp;lt;[Proc Code] = {"=sum(AMOUNT)&amp;gt;0"}&amp;gt;} DISTINCT PAT_ENC_CSN_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 19:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-than/m-p/398251#M148306</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-02T19:02:48Z</dc:date>
    </item>
  </channel>
</rss>

