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: 
_AnonymousUser
Specialist III
Specialist III

Replace 0 (zero) by NULL with treplace (or other component)

Hello,
i want to replace the value 0 by NULL with treplace, but this dosn´t work.
I'm on talend 4.0
I try 0 to null > error
I try "0" to null > error
I try 0 to > no error but nothing happens the zero still appears in tlog
I try "0" to > no error but nothing happens the zero still appeas in tlog
Please help me to find my mistake.
Thanks
Sebastian1234
Labels (2)
3 Replies
Anonymous
Not applicable

Hello
What's the data type of this column? You can replace it on tMap:
Assuming the data type is String,
row1.value.equals("0")?null:row1.value

Best regards

shong
_AnonymousUser
Specialist III
Specialist III
Author

Hello,
ok i will have a try.
It is a integer so i think it musst be
row1.value.equals(0)?null:row1.value
Thanks a lot!
Sebastian1234
Anonymous
Not applicable

Hello
If it is a Integer, try
row1.value==0?null:row1.value

Best regards
shong