<?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 Expression Issue (Subtract a number from a count IF) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431232#M698097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this count in my report and one of my end users wants to remove 222,723 accounts if the "Tier" and "date" equal what I have below. I must have something arrange incorrectly because it will not remove this volume of accounts from the total. I have it commented out for now as shown below. Could someone help me arrange this correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33476" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/33476_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2013 23:11:12 GMT</pubDate>
    <dc:creator>MalcolmCICWF</dc:creator>
    <dc:date>2013-02-12T23:11:12Z</dc:date>
    <item>
      <title>Expression Issue (Subtract a number from a count IF)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431232#M698097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this count in my report and one of my end users wants to remove 222,723 accounts if the "Tier" and "date" equal what I have below. I must have something arrange incorrectly because it will not remove this volume of accounts from the total. I have it commented out for now as shown below. Could someone help me arrange this correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33476" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/33476_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 23:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431232#M698097</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-02-12T23:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Issue (Subtract a number from a count IF)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431233#M698098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this Expression .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(concat(Tier,',') like 'Quint*' and Concat([Date Added Month] like '01*',count(Distinct [Account ID]) - 22723) ,count(Distinct [Account ID]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 23:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431233#M698098</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2013-02-12T23:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Issue (Subtract a number from a count IF)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431234#M698099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not working&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33492" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/33492_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I have never used the concat functions to do anything like this, is it necessary? Is it not more simple to count the distinct Account ID but if it is Tier 'Quint' and Sate Added Month '01', then subtract? I have similar things like this in the past in the script itself, would it be easier to try and add it here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 14:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431234#M698099</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-02-13T14:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Issue (Subtract a number from a count IF)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431235#M698100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps a sample applicaiton will help me to suggest you an answer.. Above expression worked for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i have noticed is that if i am using "IF" in the chart expression and the conditions on the columns...it is not populating with any result..unless if i keep the columns that i am filtering on into the chart...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 16:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431235#M698100</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2013-02-13T16:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Issue (Subtract a number from a count IF)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431236#M698101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually figured it out and got it to work with this simple expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if &lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Tier&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Quint' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date Added Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='01',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;[Account ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-22723,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;[Account ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 16:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Issue-Subtract-a-number-from-a-count-IF/m-p/431236#M698101</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-02-13T16:44:05Z</dc:date>
    </item>
  </channel>
</rss>

