<?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: Difference between two expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-two-expressions/m-p/724278#M259849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases they can give different results.&lt;/P&gt;&lt;P&gt;Suppose that for some records the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Test_B&lt;/SPAN&gt; is null(). Then the second expression&amp;nbsp; will skip the whole record even if the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Test_A&lt;/SPAN&gt; is not null, because &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Test_A - null() = null()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 10:45:41 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2014-07-07T10:45:41Z</dc:date>
    <item>
      <title>Difference between two expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-expressions/m-p/724277#M259848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;test:&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Test_A, Test_B, Test_C&lt;/P&gt;&lt;P&gt;&amp;nbsp; 10.001, 20, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 31, 1, 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;QUALIFY * ;&lt;/P&gt;&lt;P&gt;test_1:&lt;/P&gt;&lt;P&gt;load sum(Test_A) - sum(Test_B) as TOTAL&lt;/P&gt;&lt;P&gt;Resident test&lt;/P&gt;&lt;P&gt;group by Test_C;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test_2:&lt;/P&gt;&lt;P&gt;load sum(Test_A - Test_B) as TOTAL&lt;/P&gt;&lt;P&gt;Resident test&lt;/P&gt;&lt;P&gt;group by Test_C;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a difference in this two differents ways to calculate sum ? &lt;/P&gt;&lt;P&gt;(In my example this is exactly the same, but in my application with huges datas there are difference and I think is due to this calculation)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 10:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-expressions/m-p/724277#M259848</guid>
      <dc:creator />
      <dc:date>2014-07-07T10:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-expressions/m-p/724278#M259849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases they can give different results.&lt;/P&gt;&lt;P&gt;Suppose that for some records the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Test_B&lt;/SPAN&gt; is null(). Then the second expression&amp;nbsp; will skip the whole record even if the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Test_A&lt;/SPAN&gt; is not null, because &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Test_A - null() = null()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 10:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-expressions/m-p/724278#M259849</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-07-07T10:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-expressions/m-p/724279#M259850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe if you have some null in your application data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61843_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test:&lt;/P&gt;&lt;P&gt;load rowno() as id, Test_A, if(Test_B='-',null(),Test_B) as Test_B, Test_C;&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Test_A, Test_B, Test_C&lt;/P&gt;&lt;P&gt;&amp;nbsp; 100, 10, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 100, 1, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp; 100,-,1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY * ;&lt;/P&gt;&lt;P&gt;test_1:&lt;/P&gt;&lt;P&gt;load Test_C, sum(Test_A) - sum(Test_B) as TOTAL&lt;/P&gt;&lt;P&gt;Resident test&lt;/P&gt;&lt;P&gt;group by Test_C;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test_2:&lt;/P&gt;&lt;P&gt;load Test_C, sum(Test_A - Test_B) as TOTAL&lt;/P&gt;&lt;P&gt;Resident test&lt;/P&gt;&lt;P&gt;group by Test_C;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 10:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-expressions/m-p/724279#M259850</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-07T10:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-expressions/m-p/724280#M259851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first expression is f sum of differnce &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where as second is difference of sum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 10:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-expressions/m-p/724280#M259851</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-07-07T10:55:50Z</dc:date>
    </item>
  </channel>
</rss>

