<?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: How can I make null equal to zero in an expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769773#M1038530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So being new to QlikView, is there a correct way or a best practices way of handling this?&amp;nbsp; I see many solutions to this question!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Dec 2014 11:15:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-21T11:15:08Z</dc:date>
    <item>
      <title>How can I make null equal to zero in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769767#M1038524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am relatively new to QlikView and I am making a practice QV document using the Northwind Database.&amp;nbsp; I am trying to write an expression for [Total Inventory].&amp;nbsp; The expression itself I think is a simple expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Inventory Purchased.Quantity Purchased]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Inventory Sold.Quantity Sold]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am having however is that in the [Inventory Sold.Quantity Sold] They did not use zero's for zero quantity and instead the field is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make null equal to zero so the expression will return the desired calculation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Dec 2014 10:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769767#M1038524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-21T10:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make null equal to zero in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769768#M1038525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide some sample data so that we can help you i better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I think your formula should be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Inventory Purchased.Quantity Purchased])&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; -&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Inventory Sold.Quantity Sold]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Mukram&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Dec 2014 10:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769768#M1038525</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2014-12-21T10:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make null equal to zero in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769769#M1038526</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;try in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isnull(Field),0,Field) as Field,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From xyz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Dec 2014 10:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769769#M1038526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-21T10:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make null equal to zero in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769770#M1038527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I answered my own question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed my expression to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt; (&lt;SPAN style="color: #0000ff;"&gt;Alt&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Inventory Purchased.Quantity Purchased]&lt;/SPAN&gt;,0) - &lt;SPAN style="color: #0000ff;"&gt;Alt&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Inventory Sold.Quantity Sold]&lt;/SPAN&gt;,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to have done the trick!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for those who replied!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Dec 2014 10:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769770#M1038527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-21T10:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make null equal to zero in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769771#M1038528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;try this expression in back end&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;IsNull&lt;/SPAN&gt;(&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-size: 12pt; color: #800000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Inventory Sold.Quantity Sold]&lt;/SPAN&gt;&lt;/SPAN&gt;)=-1,0,&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Inventory Sold.Quantity Sold]&lt;/SPAN&gt;&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-size: 12pt; color: #800000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Inventory Sold.Quantity Sold]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;&lt;SPAN style="color: #000000;"&gt;hope this helps you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Dec 2014 11:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769771#M1038528</guid>
      <dc:creator />
      <dc:date>2014-12-21T11:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make null equal to zero in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769772#M1038529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of Sum you can use Rangesum. From help below is the text that explains rangesum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;rangesum(expr1 [ , expr2, ... exprN ]) Returns the sum of a range of 1 to N arguments. &lt;STRONG&gt;As opposed to the + operator, rangesum will treat all non-numeric values as 0.&lt;/STRONG&gt; The argument expressions of this function may contain Chart Inter Record Functions with a third optional parameter, which in themselves return a range of values. Examples: rangesum (1,2,4) returns 7 rangesum (1,'xyz') returns 1 rangesum (null( )) returns 0 rangesum (above(count(x),-1,3)) returns the sum of the three results of the count(x) function evaluated on the row below the current row, the current row and the row above the current row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;All nulls will be treated as zero.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Rajesh Vaswani&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Dec 2014 11:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769772#M1038529</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2014-12-21T11:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make null equal to zero in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769773#M1038530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So being new to QlikView, is there a correct way or a best practices way of handling this?&amp;nbsp; I see many solutions to this question!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Dec 2014 11:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769773#M1038530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-21T11:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make null equal to zero in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769774#M1038531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try all solutions and compare your self the outputs.&lt;/P&gt;&lt;P&gt;decide the good one.&lt;/P&gt;&lt;P&gt;better solution is handling any transformations in Script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Dec 2014 11:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-null-equal-to-zero-in-an-expression/m-p/769774#M1038531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-21T11:34:07Z</dc:date>
    </item>
  </channel>
</rss>

