<?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: show null (missing) as zero value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929624#M646411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could replace NULL with a value within the script with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(Field))=0, 0, Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible is also to use statements like "NullAsValue" and "NullValue". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use "Suppress NULL" within the chart-options a replacing with 0 isn't helpful and you need to manipulate it with something like 0.000000000000000001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2015 12:33:48 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-12-15T12:33:48Z</dc:date>
    <item>
      <title>show null (missing) as zero value</title>
      <link>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929623#M646410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way that when there is no value in a specific date\s the Qlik will convert&amp;nbsp; the missing value to&amp;nbsp; a ZERO value (showing the date with value=zero instead of ignoring\not presenting that date at all.&lt;/P&gt;&lt;P&gt;This way when I have a day\s with no value the line graph will go down to zero and up again at the next date for which a value exist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I have the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7&lt;/STRONG&gt;.12.15&amp;nbsp;&amp;nbsp;&amp;nbsp; 90&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;.12.15&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;11.12.15&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12&lt;/STRONG&gt;.12.15&amp;nbsp; 90&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;14&lt;/STRONG&gt;.12.15&amp;nbsp; 110&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be&amp;nbsp; converted to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;7.12.15&amp;nbsp;&amp;nbsp;&amp;nbsp; 90&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;8.12.15&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;9.12.15&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;10.12.15&amp;nbsp; 100&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;11.12.15&amp;nbsp; 100&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12.12.15&amp;nbsp; 90&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;13.12.15&amp;nbsp; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;14.12.15&amp;nbsp; 110&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Your help will be appreciated,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Nir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 09:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929623#M646410</guid>
      <dc:creator />
      <dc:date>2015-12-15T09:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: show null (missing) as zero value</title>
      <link>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929624#M646411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could replace NULL with a value within the script with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(Field))=0, 0, Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible is also to use statements like "NullAsValue" and "NullValue". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to use "Suppress NULL" within the chart-options a replacing with 0 isn't helpful and you need to manipulate it with something like 0.000000000000000001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 12:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929624#M646411</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-15T12:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: show null (missing) as zero value</title>
      <link>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929625#M646413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gil,&lt;/P&gt;&lt;P&gt;If we want todo thatin script level &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( IsNull(fieldname) or len(fieldname) =0, 'defaultvalue' , fieldname) as fieldname&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 12:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929625#M646413</guid>
      <dc:creator />
      <dc:date>2015-12-15T12:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: show null (missing) as zero value</title>
      <link>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929626#M646414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-avatarid="1004" data-externalid="" data-online="false" data-presence="null" data-userid="205981" data-username="Ramanjan" href="https://community.qlik.com/people/Ramanjan" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; text-decoration: underline; background-color: #f2f2f2;"&gt;Ramanjaneyulu Yeluru&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;thank you for your effort. &lt;/P&gt;&lt;P&gt;I tried the if( IsNull(field name) =0, 'default value' , field name) as field name in the load script but it did not work for me.&lt;/P&gt;&lt;P&gt;Thank you for your effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 14:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929626#M646414</guid>
      <dc:creator />
      <dc:date>2015-12-15T14:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: show null (missing) as zero value</title>
      <link>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929627#M646416</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;You have to create those datas with the value 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your example:&lt;/P&gt;&lt;P&gt;You have to create those missing dates =&amp;gt; Check out how to create a master calendar in case you don't know to create the dates.&lt;/P&gt;&lt;P&gt;Then you give 0 as value to each date and then join for the dates that doen't exist in your datas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7&lt;/STRONG&gt;.12.15, 90&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;.12.15,&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;11.12.15, 100&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12&lt;/STRONG&gt;.12.15, 90&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;14&lt;/STRONG&gt;.12.15,&amp;nbsp; 110&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;/P&gt;&lt;P&gt;min(&lt;STRONG&gt;Date&lt;/STRONG&gt;) as minDate,&amp;nbsp; &lt;/P&gt;&lt;P&gt;max(&lt;STRONG&gt;Date&lt;/STRONG&gt;) as maxDate&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident &lt;STRONG&gt;Fact;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp')); &lt;/P&gt;&lt;P&gt; Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Temp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCalendar:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Date($(varMinDate) + IterNo() - 1) as TempDate&amp;nbsp; &lt;/P&gt;&lt;P&gt; AutoGenerate 1 While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN (Fact)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;TempDate as Date&lt;/P&gt;&lt;P&gt;0 as &lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempCalendar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;not exists(Date,TempDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 14:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929627#M646416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-15T14:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: show null (missing) as zero value</title>
      <link>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929628#M646417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.qlik.com/qlik-users/97864"&gt;sbobbyraj&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I gave the example only as an&amp;nbsp; example.&lt;/P&gt;&lt;P&gt;I do not wish to create the dates manually since I have many dates-hole in the database which are varied for different cases. &lt;/P&gt;&lt;P&gt;Let say you collect money, from different countries and in each country there are different cities and in every city there are a few bank. You collect money from each bank but sometimes (some dates) a bank does not deposit money, does not give you money that date.&lt;/P&gt;&lt;P&gt;Now you want to show in a table the money deposit (aggregation expression) by country, by city or by a specific bank\s.&lt;/P&gt;&lt;P&gt;And when I pick a specific bank, when there is no deposit in some days, I want:&lt;/P&gt;&lt;P&gt;A.To present&amp;nbsp; the missing days in my X line (time line)&lt;/P&gt;&lt;P&gt;B. And in those missing days to show zero values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nir &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 07:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-null-missing-as-zero-value/m-p/929628#M646417</guid>
      <dc:creator />
      <dc:date>2015-12-16T07:47:53Z</dc:date>
    </item>
  </channel>
</rss>

