<?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: Wrong subtraction during load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319857#M409124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;RangeSum(A, -B)"&amp;nbsp; worked.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 10:30:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-20T10:30:25Z</dc:date>
    <item>
      <title>Wrong subtraction during load</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319853#M409120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just can't get my head around what's WRONG with simple subtraction. I am loading from excel. I tried num(A)-num(B) as C but still the the same wrong subtraction is coming. While I am checking in excel, it should be 530 million. Please help. The script is simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load A, B, A-B as C from ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sum of A and B is correct but the difference is not coming correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 697px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;EntryDesc&lt;/TD&gt;&lt;TD class="xl64" width="134"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;B&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="194"&gt;A-B as C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Actuals&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;967,305,225.24 &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; 436,323,183.98 &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; 409,016,914.02 &lt;/TD&gt;&lt;TD&gt;Wrong Subtraction with load&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Actuals&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;967,305,225.24 &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;436,323,183.98 &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; 530,982,041.26 &lt;/TD&gt;&lt;TD&gt;Correct one should be&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SAK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 09:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319853#M409120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-20T09:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong subtraction during load</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319854#M409121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;LOAD * , A-B as C ; &lt;/P&gt;&lt;P&gt;LOAD EntryDesc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD EntryDesc, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A-B as C&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 09:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319854#M409121</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-20T09:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong subtraction during load</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319855#M409122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If either A or B is null, then the sum of A-B is null, even if the other field has a value.You can use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&amp;nbsp; RangeSum(A, -B)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&amp;nbsp; Alt(A, 0) - Alt(B, 0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which will ensure that the null value is treated as a 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 09:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319855#M409122</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-06-20T09:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong subtraction during load</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319856#M409123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post a sample app that demonstrates the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 09:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319856#M409123</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-06-20T09:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong subtraction during load</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319857#M409124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;RangeSum(A, -B)"&amp;nbsp; worked.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 10:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319857#M409124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-20T10:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong subtraction during load</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319858#M409125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both working fine. Thanks a ton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;RangeSum(A, -B)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp; Alt(A, 0) - Alt(B, 0)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 10:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319858#M409125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-20T10:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong subtraction during load</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319859#M409126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 10:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-subtraction-during-load/m-p/1319859#M409126</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-06-20T10:34:37Z</dc:date>
    </item>
  </channel>
</rss>

