<?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: replacing null values with 0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485185#M181246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use something like below...&lt;/P&gt;&lt;P&gt;if(SalesValue=null(), 0, SalesValue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2013 10:09:40 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2013-11-25T10:09:40Z</dc:date>
    <item>
      <title>replacing null values with 0</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485180#M181241</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;I'm trying to replace a null value with 0 in an expression which contains a set analysis but it doesn't work and I think I'm going to kill myself. &lt;/P&gt;&lt;P&gt;The expression is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=AVG(TOTAL &amp;lt;MAT_MATERIAL_CODE&amp;gt; AGGR( MAX( {$&amp;lt;MONTH=, Quarter=&amp;gt;} YearMonth), MAT_MATERIAL_CODE)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;} Cost&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've tried to use if isnull or alt(sum(....), 0) but no success. I've realized it's because of the set analysis because if I apply these solutions to another expression which not contains set analysis it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Do you have any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Cristina&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 09:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485180#M181241</guid>
      <dc:creator />
      <dc:date>2013-11-25T09:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: replacing null values with 0</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485181#M181242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to do in&amp;nbsp; chart properties presentation tab &lt;/P&gt;&lt;P&gt;below is null symbol -&amp;nbsp; replace it to zero&lt;/P&gt;&lt;P&gt;your expression is right&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 09:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485181#M181242</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-11-25T09:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: replacing null values with 0</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485182#M181243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="untitled.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/49494_untitled.bmp" style="width: 620px; height: 546px;" /&gt;try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 09:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485182#M181243</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-11-25T09:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: replacing null values with 0</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485183#M181244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cristina,&lt;/P&gt;&lt;P&gt;Go to Properties--Presentation tab of the chart and in the left side, at the bottom, you will have an option to change the Null Symbol, you can give 0 here:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Null.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/49496_Null.bmp" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 10:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485183#M181244</guid>
      <dc:creator />
      <dc:date>2013-11-25T10:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: replacing null values with 0</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485184#M181245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not a solution because I need to summarize this expression with another one which has a value. I can't add a value to null, because it results null. First, I need to replace null with zero and then I think it'll work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 10:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485184#M181245</guid>
      <dc:creator />
      <dc:date>2013-11-25T10:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: replacing null values with 0</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485185#M181246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use something like below...&lt;/P&gt;&lt;P&gt;if(SalesValue=null(), 0, SalesValue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 10:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485185#M181246</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-11-25T10:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: replacing null values with 0</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485186#M181247</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;Why can't you change the Null value to zero in script?&amp;nbsp; It would be easier like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Alt(Measure, 0) AS Measure&lt;/P&gt;&lt;P&gt;FROM Datasource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 10:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485186#M181247</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-11-25T10:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: replacing null values with 0</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485187#M181248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use rangesum() function to add the values, NULL will be treated as zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you double checked that the dollar sign expression returns something meaningful?&lt;/P&gt;&lt;P&gt;And besides your problems with NULL, I think it could create issues if you average a YearMonth field and then want to assign this average value to YearMonth Field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 10:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-null-values-with-0/m-p/485187#M181248</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-25T10:23:21Z</dc:date>
    </item>
  </channel>
</rss>

