Reputation: 81
I am using an expression builder in derived column action of Azure data factory. I have an iif statement that that adds objects to a single array of objects based on whether 5 columns are null. Within the iif statement if the object is not null it adds it to the array object and I did not specify an action for when the columns is null. So if the 3 columns have a value then there should be 3 total objects in the array but the issue is for those 2 empty columns they show up as 2 "null" values within the array. I don't want that. I just want to cleanly have only the 3 objects in the array. How can I convert the null values to whitespace or is there a better way to get this done?
Upvotes: 0
Views: 2634
Reputation: 6063
I've made a test to conver null value to whitespace successfully.
Summary:
So we can use expression iif(isNull(<Column_Name>),'\n',<Column_Name>)
to replace the NULL value to a whitespace.
Upvotes: 1