<?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 strange count results in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933497#M948778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hoping someone may be able to help point me in the direction of figuring out this strange issue. I have one table loaded with the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accounting_date, customer_id, deposit_amount, withdrawal_amount, payment_method, count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing a distinct count for either those who made deposit or who made withdrawals in separate set analysis statements I have pasted below. The problem is that they are returning the same result, neither correct. It seems to be doing the count on the whole date range, while ignoring the -={0} in both statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions appreciated&lt;/P&gt;&lt;P&gt;Grant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Arial; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {$&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/SPAN&gt;ACCOUNTING_DATE&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;gt;=$(=Date((vRegDateStart)))&amp;lt;=$(=Date(30+(vRegDateEnd)))"&lt;SPAN style="color: #000000;"&gt;},&lt;/SPAN&gt;DEPOSIT_AMOUNT&lt;SPAN style="color: #000000;"&gt;-={0}&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; CUSTOMER&lt;/SPAN&gt;_ID&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Arial; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {$&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/SPAN&gt;ACCOUNTING_DATE&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;gt;=$(=Date((vRegDateStart)))&amp;lt;=$(=Date(30+(vRegDateEnd)))"&lt;SPAN style="color: #000000;"&gt;},&lt;/SPAN&gt;WITHDRAWAL_AMOUNT&lt;SPAN style="color: #000000;"&gt;-={0}&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; CUSTOMER&lt;/SPAN&gt;_ID&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2015 15:54:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-15T15:54:40Z</dc:date>
    <item>
      <title>strange count results</title>
      <link>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933497#M948778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hoping someone may be able to help point me in the direction of figuring out this strange issue. I have one table loaded with the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accounting_date, customer_id, deposit_amount, withdrawal_amount, payment_method, count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing a distinct count for either those who made deposit or who made withdrawals in separate set analysis statements I have pasted below. The problem is that they are returning the same result, neither correct. It seems to be doing the count on the whole date range, while ignoring the -={0} in both statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions appreciated&lt;/P&gt;&lt;P&gt;Grant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Arial; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {$&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/SPAN&gt;ACCOUNTING_DATE&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;gt;=$(=Date((vRegDateStart)))&amp;lt;=$(=Date(30+(vRegDateEnd)))"&lt;SPAN style="color: #000000;"&gt;},&lt;/SPAN&gt;DEPOSIT_AMOUNT&lt;SPAN style="color: #000000;"&gt;-={0}&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; CUSTOMER&lt;/SPAN&gt;_ID&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: Arial; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {$&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/SPAN&gt;ACCOUNTING_DATE&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;gt;=$(=Date((vRegDateStart)))&amp;lt;=$(=Date(30+(vRegDateEnd)))"&lt;SPAN style="color: #000000;"&gt;},&lt;/SPAN&gt;WITHDRAWAL_AMOUNT&lt;SPAN style="color: #000000;"&gt;-={0}&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; CUSTOMER&lt;/SPAN&gt;_ID&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 15:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933497#M948778</guid>
      <dc:creator />
      <dc:date>2015-12-15T15:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: strange count results</title>
      <link>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933498#M948779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try writing like &lt;SPAN style="color: #941100; font-family: Arial; font-size: 9px;"&gt;DEPOSIT_AMOUNT = {'&amp;gt;0'}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 16:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933498#M948779</guid>
      <dc:creator />
      <dc:date>2015-12-15T16:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: strange count results</title>
      <link>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933499#M948780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that works thanks! any idea why the not equal to wouldn't work just as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 16:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933499#M948780</guid>
      <dc:creator />
      <dc:date>2015-12-15T16:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: strange count results</title>
      <link>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933500#M948781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps those fields don't contain any values that are exactly 0. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 16:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933500#M948781</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-15T16:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: strange count results</title>
      <link>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933501#M948782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert! I assumed that 0.00 and 0 would be considered the same and now it makes sense. I tested both now and they do work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such a great community here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 16:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/strange-count-results/m-p/933501#M948782</guid>
      <dc:creator />
      <dc:date>2015-12-15T16:37:24Z</dc:date>
    </item>
  </channel>
</rss>

