<?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: Sum of Null equals zero - How To Resolve in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-Null-equals-zero-How-To-Resolve/m-p/1382385#M421208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly, in your case , it is actually a empty value rather then a null value , inline table can not produce null value&lt;/P&gt;&lt;P&gt;to prove this ,you can use "=NullCount(NumberOfDays)" , the result would be 0,&lt;/P&gt;&lt;P&gt;you can move your date into a Excel file which will produce null value&lt;/P&gt;&lt;P&gt;based on above , change your expression to like this&lt;/P&gt;&lt;P&gt;"=IF(NullCount(NumberOfDays)=0,Sum(NumberOfDays))"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2017 09:02:19 GMT</pubDate>
    <dc:creator>woshua5550</dc:creator>
    <dc:date>2017-10-31T09:02:19Z</dc:date>
    <item>
      <title>Sum of Null equals zero - How To Resolve</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Null-equals-zero-How-To-Resolve/m-p/1382383#M421206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on what should be a straightforward calculation, but I seem to be battling to get the behaviour I want.&amp;nbsp; If you look at the below, I'm doing a simple sum(NumberOfDays).&amp;nbsp; This is giving me a result of zero for Product A and Product D.&amp;nbsp; However, the Number of Days for Product D is actually null, and I want the calculation to return Null.&amp;nbsp; What is the best way to do this?&amp;nbsp; If I use a simple if statement, I have to do a sum of rows for the total, which I'd like to avoid.&amp;nbsp; Is there a straightforward way to return the result I want (app is attached).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Test1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181575_Test1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 07:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Null-equals-zero-How-To-Resolve/m-p/1382383#M421206</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2017-10-31T07:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Null equals zero - How To Resolve</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Null-equals-zero-How-To-Resolve/m-p/1382384#M421207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Count(NumberOfDays) &amp;gt; 0, Sum(NumberOfDays))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181587_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 08:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Null-equals-zero-How-To-Resolve/m-p/1382384#M421207</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-31T08:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Null equals zero - How To Resolve</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Null-equals-zero-How-To-Resolve/m-p/1382385#M421208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly, in your case , it is actually a empty value rather then a null value , inline table can not produce null value&lt;/P&gt;&lt;P&gt;to prove this ,you can use "=NullCount(NumberOfDays)" , the result would be 0,&lt;/P&gt;&lt;P&gt;you can move your date into a Excel file which will produce null value&lt;/P&gt;&lt;P&gt;based on above , change your expression to like this&lt;/P&gt;&lt;P&gt;"=IF(NullCount(NumberOfDays)=0,Sum(NumberOfDays))"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 09:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Null-equals-zero-How-To-Resolve/m-p/1382385#M421208</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2017-10-31T09:02:19Z</dc:date>
    </item>
  </channel>
</rss>

