<?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 Using Sum(If to do a subtraction on fields in a text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Sum-If-to-do-a-subtraction-on-fields-in-a-text-box/m-p/189297#M52239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS I have just tested this in a sample application and it works fine&lt;/P&gt;&lt;P&gt;=sum(if([Field1] = 'Blah', revenue-COST))&lt;/P&gt;&lt;P&gt;In the real application the numbers in the fields are huge, not sure why this is happening, hope I can get some pointers thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Mar 2010 17:42:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-22T17:42:47Z</dc:date>
    <item>
      <title>Using Sum(If to do a subtraction on fields in a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Sum-If-to-do-a-subtraction-on-fields-in-a-text-box/m-p/189296#M52238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi am using version 8.5. Just getting going with the product and I have a question on the sum(if commands&lt;/P&gt;&lt;P&gt;I am trying to do the following, will illustrate at the very basic level, want to format it in currency once the basic issue is resolved&lt;/P&gt;&lt;P&gt;=sum(if([Field1] = 'Blah', revenue-COST))&lt;/P&gt;&lt;P&gt;Returns a 0&lt;/P&gt;&lt;P&gt;If I do =sum(revenue)-sum(COST)&lt;/P&gt;&lt;P&gt;that works&lt;/P&gt;&lt;P&gt;I can do other calulations with the sum(if such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;sum(if([POD Type] = 'POD - EL' or [POD Type] = 'POD - NEL', MONEY(revenue,'£#,###')))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But the simple subtraction wont work, sorry about this really obvious question, I think it is a matter of syntax but Ive tried all sorts of combinations and cant get it to work&lt;/P&gt;&lt;P&gt;Thanks a lot for any help&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 17:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Sum-If-to-do-a-subtraction-on-fields-in-a-text-box/m-p/189296#M52238</guid>
      <dc:creator />
      <dc:date>2010-03-22T17:01:59Z</dc:date>
    </item>
    <item>
      <title>Using Sum(If to do a subtraction on fields in a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Sum-If-to-do-a-subtraction-on-fields-in-a-text-box/m-p/189297#M52239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS I have just tested this in a sample application and it works fine&lt;/P&gt;&lt;P&gt;=sum(if([Field1] = 'Blah', revenue-COST))&lt;/P&gt;&lt;P&gt;In the real application the numbers in the fields are huge, not sure why this is happening, hope I can get some pointers thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 17:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Sum-If-to-do-a-subtraction-on-fields-in-a-text-box/m-p/189297#M52239</guid>
      <dc:creator />
      <dc:date>2010-03-22T17:42:47Z</dc:date>
    </item>
    <item>
      <title>Using Sum(If to do a subtraction on fields in a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Sum-If-to-do-a-subtraction-on-fields-in-a-text-box/m-p/189298#M52240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I got round this by using variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 18:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Sum-If-to-do-a-subtraction-on-fields-in-a-text-box/m-p/189298#M52240</guid>
      <dc:creator />
      <dc:date>2010-03-25T18:28:02Z</dc:date>
    </item>
  </channel>
</rss>

