<?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: Counting with Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730255#M261583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again, Jonathan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you're both correct. The answer should be 4, not 3.&amp;nbsp; Don't you love it when the accountant fails at basic arithmetic? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your expression, the sum of Amount is correct.&amp;nbsp; But what I need is a Count.&amp;nbsp; I tried changing the second IF to COUNT, but I get 6, not 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 16:22:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-30T16:22:41Z</dc:date>
    <item>
      <title>Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730250#M261578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need some help with counting in an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data set looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="64"&gt;Account&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;ProcedureChargeCategory&lt;/TD&gt;&lt;TD class="xl63" width="64"&gt;TransactionProcedureID &lt;/TD&gt;&lt;TD class="xl63" width="64"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;R456789&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/1/2014&lt;/TD&gt;&lt;TD align="right" class="xl64" style="text-align: center;"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;120004&lt;/TD&gt;&lt;TD align="right"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;R456789&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/2/2014&lt;/TD&gt;&lt;TD align="right" class="xl64" style="text-align: center;"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;120004&lt;/TD&gt;&lt;TD align="right"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;R456789&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/3/2014&lt;/TD&gt;&lt;TD align="right" class="xl64" style="text-align: center;"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;120004&lt;/TD&gt;&lt;TD align="right"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;R456789&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/4/2014&lt;/TD&gt;&lt;TD align="right" class="xl64" style="text-align: center;"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;120004&lt;/TD&gt;&lt;TD align="right"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;R456789&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/5/2014&lt;/TD&gt;&lt;TD align="right" class="xl64" style="text-align: center;"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;120004&lt;/TD&gt;&lt;TD align="right"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17"&gt;R456789&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;1/5/2014&lt;/TD&gt;&lt;TD align="right" class="xl64" style="text-align: center;"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;120004&lt;/TD&gt;&lt;TD align="right"&gt;-500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 1/5/2014, the item was charged in error, and reversed, resulting in a zero amount for that day. I need to count the number of charges that were not reversed.&amp;nbsp; In this case, the correct count = 3, not 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The only items I want to count are those where ProcedureChargeCategory&amp;lt;250, so &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I can count the total using this expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;ProcedureChargeCategory&amp;lt;250,count(ProcedureChargeCategory&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;But I'm at a loss as to how to account for the reversed charge to arrive at the correct total.&amp;nbsp; I'm guessing it's a set analysis problem, which is definitely not my strong suit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;How would you solve this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 15:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730250#M261578</guid>
      <dc:creator />
      <dc:date>2014-09-30T15:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730251#M261579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hows the count=3 and not 5??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 15:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730251#M261579</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-09-30T15:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730252#M261580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, KC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's 3 because the two entries on 1/5/2014 cancel each other out.&amp;nbsp; Basically, the item was charged in error, and reversed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 15:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730252#M261580</guid>
      <dc:creator />
      <dc:date>2014-09-30T15:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730253#M261581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still we have a count of 4 ? Can you explain a bit more about your requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 15:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730253#M261581</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-09-30T15:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730254#M261582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you want 4 records in this case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this chart I used the following formula for Amount. It checks for procedurechargecategories and the total for that date.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that if the charge was debited and creditted on the same day, the total for that day is 0.&amp;nbsp; Is that a good assumption ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also need to total on more dimensions than &amp;lt;Date&amp;gt; in your actual data set but this works for the sample.&amp;nbsp; Post a longer sample if you need to get further clarification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if( sum( total&amp;nbsp; &amp;lt;Date&amp;gt; if(ProcedureChargeCategory&amp;lt;250, Amount)) &amp;lt;&amp;gt; 0 , sum( if(ProcedureChargeCategory&amp;lt;250, Amount)&amp;nbsp; ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68018_Capture.PNG.png" style="width: 620px; height: 219px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 16:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730254#M261582</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-30T16:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730255#M261583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again, Jonathan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you're both correct. The answer should be 4, not 3.&amp;nbsp; Don't you love it when the accountant fails at basic arithmetic? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your expression, the sum of Amount is correct.&amp;nbsp; But what I need is a Count.&amp;nbsp; I tried changing the second IF to COUNT, but I get 6, not 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 16:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730255#M261583</guid>
      <dc:creator />
      <dc:date>2014-09-30T16:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730256#M261584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try getting the count in a textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if( sum( total&amp;nbsp; &amp;lt;Date&amp;gt; if(ProcedureChargeCategory&amp;lt;250, Amount)) &amp;lt;&amp;gt; 0 , count(distinct&amp;nbsp; if(ProcedureChargeCategory&amp;lt;250, Amount)&amp;nbsp; ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 16:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730256#M261584</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-09-30T16:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730257#M261585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For count i added this expression into the same chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( sum( total&amp;nbsp; &amp;lt;Date&amp;gt; if(ProcedureChargeCategory&amp;lt;250, Amount)) &amp;lt;&amp;gt; 0 and ProcedureChargeCategory&amp;lt;250, 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then on the total's , change it from "expression total" to 'Sum of Rows"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68022_Capture.PNG.png" style="width: 620px; height: 180px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 16:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730257#M261585</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-30T16:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730258#M261586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try getting grand total in a text box,that will be more meaningful. Just a suggestion &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.Above one is good &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 17:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730258#M261586</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-09-30T17:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730259#M261587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I left out an important piece of the puzzle here.&amp;nbsp; The table I posted is my data model.&amp;nbsp; My chart (a straight table) needs to look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 290px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;Account&lt;/TD&gt;&lt;TD class="xl66" width="162"&gt;&lt;BR /&gt;&amp;nbsp; &lt;DIV&gt;&lt;BR /&gt;&amp;nbsp; &lt;DIV&gt;ProcedureChargeCategory&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp; &lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;R456789&lt;/TD&gt;&lt;TD align="right"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;R456789&lt;/TD&gt;&lt;TD align="right"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;R456789&lt;/TD&gt;&lt;TD align="right"&gt;362&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;R456789&lt;/TD&gt;&lt;TD align="right"&gt;985&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;R678910&lt;/TD&gt;&lt;TD align="right"&gt;122&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;R678910&lt;/TD&gt;&lt;TD align="right"&gt;255&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;R678910&lt;/TD&gt;&lt;TD align="right"&gt;621&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only lines that have a value in the Count column are those with a ProcedureChargeCategory &amp;lt; 250.&amp;nbsp; The rest would be either blank or 0.&amp;nbsp; So, the accumulation happens in the chart expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 18:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730259#M261587</guid>
      <dc:creator />
      <dc:date>2014-09-30T18:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730260#M261588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you lost me.&amp;nbsp; I'm not sure what is being counted here. In this new table,&amp;nbsp;&amp;nbsp; R456789 has 4 records, 1 is below &amp;lt;250.&amp;nbsp; But the count says 4.&amp;nbsp;&amp;nbsp; For R678910 there are 3 records, 1 is below 250, but the count says 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a comprehensive data set and desired result&amp;nbsp; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 19:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730260#M261588</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-30T19:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730261#M261589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was afraid of that.&amp;nbsp; My fault, not yours. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't upload my entire data model because it's too big, and there are Federal privacy laws in play.&amp;nbsp; So, here's an anonymized, abbreviated version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The count for Account R123456 is correct.&amp;nbsp; It should be 4.&amp;nbsp; However, the count for R456789 is incorrect. It reads 6, but should be 4.&amp;nbsp; In the data model, there are offsetting entries on 1/5/2014 in ProcedureChargeCategory 121.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="142"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730261#M261589</guid>
      <dc:creator />
      <dc:date>2014-09-30T20:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730262#M261590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I think counting the transactions is easier if the data has unique identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i changed your script to add a 'recordnumber'&amp;nbsp; (1,2,3 etc...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; RecNo() as RecordNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AccountNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcedureChargeCategory,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TransactionProcedureID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I adjusted the count expression in the chart as follows. Note that there is a built in assumption here. THat any amounts with negative values, indicate 2 records need to be deducted from record count for that account number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; count( distinct total &amp;lt;AccountNumber&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp; if(ProcedureChargeCategory&amp;lt;250&amp;nbsp; ,RecordNumber))&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp; (count( distinct total &amp;lt;AccountNumber&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if( ProcedureChargeCategory&amp;lt;250 and Amount &amp;lt; 0, RecordNumber)))*2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730262#M261590</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-30T20:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730263#M261591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jonathan.&amp;nbsp; I'll play with that and report back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730263#M261591</guid>
      <dc:creator />
      <dc:date>2014-09-30T20:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730264#M261592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I'm missing something.&amp;nbsp; The QVW had a slightly different expression for Count, that resulted in zero for every line.&amp;nbsp; When I replaced it with the expression in your post, it gets the count right, but shows it for every ProcedureChargeCategory, not just those &amp;lt;250.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm honestly not nit-picking. The output has to match a State-mandated format for a crucial survey.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730264#M261592</guid>
      <dc:creator />
      <dc:date>2014-09-30T20:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730265#M261593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably my bad. I changed something at the last sec and probably forgot to upload with the changes in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To show the count only where the code is &amp;lt; 250 the formula is a bit simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( ProcedureChargeCategory&amp;lt;250,&lt;/P&gt;&lt;P&gt;&amp;nbsp; count( distinct RecordNumber)&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp; count( distinct if( Amount &amp;lt; 0, RecordNumber))*2&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 23:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730265#M261593</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-30T23:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730266#M261594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again, Jonathan.&amp;nbsp; I think that did the job.&amp;nbsp; I need to do some more verification with the full data set, but this seems like it'll get the job done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have I mentioned how much help this community is?&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730266#M261594</guid>
      <dc:creator />
      <dc:date>2014-10-01T13:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Counting with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730267#M261595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 13:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-with-Set-Analysis/m-p/730267#M261595</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-01T13:58:18Z</dc:date>
    </item>
  </channel>
</rss>

