Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

replacing null values

Hello folks , I am new with Talend and I have faced a problem when I was trying to replace Null values with this string value "cnam".

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. 

I have made the following condition in my t_map component : 

row1.MontantCnam != null && ( row1.CodeMutuelle == null) ? "cnam" : row1.CodeMutuelle 

 

As a result, all null values are replaced by "cnam" , even if the "MontantCnam" is null (0,000) .

PS:   MontantCnam has the BigDecimal data type.

 

You can find bellow a vue of my data before and after transformation.

Thanks in advance !

 

 

0683p000009LtoS.png

 

 

 

 

 

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

0.00 is not null.

 

You need to use.....

 

row1.MontantCnam != null && row1.MontantCnam.doubleValue()!=0 && row1.CodeMutuelle == null ? "cnam" : row1.CodeMutuelle 

View solution in original post

1 Reply
Anonymous
Not applicable
Author

0.00 is not null.

 

You need to use.....

 

row1.MontantCnam != null && row1.MontantCnam.doubleValue()!=0 && row1.CodeMutuelle == null ? "cnam" : row1.CodeMutuelle