<?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 replacing null values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/replacing-null-values/m-p/2259601#M41030</link>
    <description>&lt;P&gt;Hello folks , &lt;SPAN&gt;I am new with Talend and I have faced a problem when I was trying to replace Null values with this string value "cnam".&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Before replacing null values contained in the column "CodeMutuelle" , I have to check that the value of the column "MontantCnam" is different than 0.00.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I have made the following condition in my t_map component :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;row1.MontantCnam != null &amp;amp;&amp;amp; ( row1.CodeMutuelle == null) ? "cnam" : row1.CodeMutuelle&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As a result,&amp;nbsp;all null values are replaced by "cnam" , even if the "MontantCnam" is null (0,000) .&lt;/P&gt; 
&lt;P&gt;PS: &amp;nbsp; MontantCnam has the BigDecimal data type.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can find bellow a vue of my data before and after transformation.&lt;/P&gt; 
&lt;P&gt;Thanks in advance !&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Talend problem.png" style="width: 649px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtoS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148548iA3D7E3C6688BBB9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtoS.png" alt="0683p000009LtoS.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 09:56:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-07T09:56:30Z</dc:date>
    <item>
      <title>replacing null values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replacing-null-values/m-p/2259601#M41030</link>
      <description>&lt;P&gt;Hello folks , &lt;SPAN&gt;I am new with Talend and I have faced a problem when I was trying to replace Null values with this string value "cnam".&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Before replacing null values contained in the column "CodeMutuelle" , I have to check that the value of the column "MontantCnam" is different than 0.00.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I have made the following condition in my t_map component :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;row1.MontantCnam != null &amp;amp;&amp;amp; ( row1.CodeMutuelle == null) ? "cnam" : row1.CodeMutuelle&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As a result,&amp;nbsp;all null values are replaced by "cnam" , even if the "MontantCnam" is null (0,000) .&lt;/P&gt; 
&lt;P&gt;PS: &amp;nbsp; MontantCnam has the BigDecimal data type.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can find bellow a vue of my data before and after transformation.&lt;/P&gt; 
&lt;P&gt;Thanks in advance !&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Talend problem.png" style="width: 649px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtoS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148548iA3D7E3C6688BBB9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtoS.png" alt="0683p000009LtoS.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 09:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replacing-null-values/m-p/2259601#M41030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T09:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: replacing null values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replacing-null-values/m-p/2259602#M41031</link>
      <description>&lt;P&gt;0.00 is not null.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to use.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;row1.MontantCnam != null &amp;amp;&amp;amp; row1.MontantCnam.doubleValue()!=0 &amp;amp;&amp;amp; row1.CodeMutuelle == null ? "cnam" : row1.CodeMutuelle&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jun 2017 10:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replacing-null-values/m-p/2259602#M41031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T10:01:27Z</dc:date>
    </item>
  </channel>
</rss>

