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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Insert Null into Expression for Column in tMap

On an output data stream I can't figure out how to have the output column be transformed to NULL or even empty string for a particular column.
The output column metadata is varchar(2)
I have tried all kinds of useless things:
Char(0)
''.tostring()
Null
NULL
etc etc
Variables etc.
Most of the time i get 'Invalid Operand Types String and Char')
This seems so simple- how am I being stupid?
Thanks. Marc
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hello
Try
row1.columnName.equals("")?null:row1.columnName

Best regards
Shong

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hello
Try
row1.columnName.equals("")?null:row1.columnName

Best regards
Shong
Anonymous
Not applicable
Author

this worked thank you.