<?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 to replace Null() data by a value using mapping? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455730#M698335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://qlikviewnotes.blogspot.ca/2013/01/filling-default-values-using-mapping.html" title="http://qlikviewnotes.blogspot.ca/2013/01/filling-default-values-using-mapping.html"&gt;http://qlikviewnotes.blogspot.ca/2013/01/filling-default-values-using-mapping.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 22:01:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-20T22:01:04Z</dc:date>
    <item>
      <title>How to replace Null() by a string value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455729#M698334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to replace null() values of a field &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;[Rekening tegenpartij]&lt;/SPAN&gt; by the value 'geen' .&lt;/P&gt;&lt;P&gt;I tried the script below. The script compiles but is not changing anything in the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) What is wrong in my script? Is there anything wrong with defining the Null() value?&lt;/P&gt;&lt;P&gt;2) Is there another more elegant way not using the mapping function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Considering that I will also use the same mappingtable to replace empty values of other fields of the table Transacties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13613740920517076" jivemacro_uid="_13613740920517076"&gt;
&lt;P&gt;//create table to be used in mapping&lt;/P&gt;
&lt;P&gt;mappingtable:&lt;/P&gt;
&lt;P&gt;Mapping LOAD * INLINE&lt;/P&gt;
&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;Key, Label&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Null(), geen&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;//Map the empty values in Rekening tegenpartij&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;ApplyMap( 'mappingtable' , [Rekening tegenpartij] ) as [Rekening tegenpartij]&lt;/P&gt;
&lt;P&gt;RESIDENT Transacties;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for your help&lt;/P&gt;&lt;P&gt;_Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 15:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455729#M698334</guid>
      <dc:creator>cheburashka</dc:creator>
      <dc:date>2013-02-20T15:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace Null() data by a value using mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455730#M698335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://qlikviewnotes.blogspot.ca/2013/01/filling-default-values-using-mapping.html" title="http://qlikviewnotes.blogspot.ca/2013/01/filling-default-values-using-mapping.html"&gt;http://qlikviewnotes.blogspot.ca/2013/01/filling-default-values-using-mapping.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 22:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455730#M698335</guid>
      <dc:creator />
      <dc:date>2013-02-20T22:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace Null() data by a value using mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455731#M698336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think u can use isnull fucntion to replcase the null values with the green&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( isnull(&lt;SPAN style="font-family: 'Lucida Grande',Arial,Helvetica,sans-serif; background-color: #ffffff;"&gt;[Rekening tegenpartij]) = -1 , green, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Lucida Grande',Arial,Helvetica,sans-serif; background-color: #ffffff;"&gt;[Rekening tegenpartij] ) as&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Lucida Grande',Arial,Helvetica,sans-serif; background-color: #ffffff;"&gt;[Rekening tegenpartij]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;above fuction will look for the nullvalues and replace it with the green..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 22:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455731#M698336</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2013-02-20T22:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace Null() data by a value using mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455732#M698337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made a small example with the solution.&lt;/P&gt;&lt;P&gt;Please find the solution attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code (similar to the one of Shree ana) was used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14194167940268689" jivemacro_uid="_14194167940268689"&gt;
&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsNUll&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Field with Nulls]&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;), 'NA', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Field with Nulls]&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Nulls converted to NA] &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,KR Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 10:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455732#M698337</guid>
      <dc:creator>cheburashka</dc:creator>
      <dc:date>2014-12-24T10:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace Null() data by a value using mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455733#M698339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Koen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code works great when the nulls are created when there is missing data in a table created in the LoadScript. However, I can't get your solution to replace the nulls if the missing data is loaded from an XLSX file. See attached. Any ideas what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 15:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455733#M698339</guid>
      <dc:creator />
      <dc:date>2015-03-18T15:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace Null() data by a value using mapping?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455734#M698341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you are loading Nulls and not empty values or blanks?&lt;/P&gt;&lt;P&gt;Have you used the trim function, to remove the blanks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check out:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/30/null-the-invisible-nothing"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/30/null-the-invisible-nothing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-3155"&gt;http://community.qlik.com/docs/DOC-3155&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/06/28/the-importance-of-nothing"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/06/28/the-importance-of-nothing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/05/02/finding-null"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/05/02/finding-null&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, KR Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 10:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455734#M698341</guid>
      <dc:creator>cheburashka</dc:creator>
      <dc:date>2015-03-19T10:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace Null() by a string value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455735#M698342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They appear as '-' in my ReplaceNullsTestApp.qvw table.&amp;nbsp; I did try checking for Len(Trim(test_string))&amp;lt;=0, but I get the same '-' results. Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 19:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-Null-by-a-string-value/m-p/455735#M698342</guid>
      <dc:creator />
      <dc:date>2015-03-19T19:25:32Z</dc:date>
    </item>
  </channel>
</rss>

