Reputation: 49
I have a below text column called "Type" in my data
I wanted to find if column has Annual or Monthly and create new column called "Season". Season column should have Annual, Monthly or None
Expected Output
I am using derived column but not sure how to extract the partial text in the column. Can anyone advise how to do this please?
Upvotes: 1
Views: 132
Reputation: 61
You can use the following data flow expression in the derived column:
iif( contains(split(Type, ' '), #item == 'Annual'), 'Annual',
iif( contains(split(Type, ' '), #item == 'Monthly'), 'Monthly',
'None'))
Explanation:
Upvotes: 1