0

How to convert a empty string into a string ie i have a column with names and in that column there are empty strings I want those empty strings to be removed and renamed as UNKNOWN.

Before :

ID    Name    Age
1             15
2     Sam     20
3             47   
4     Smith   25

After :

ID    Name     Age
1     UNKNOWN  15
2     Sam      20
3     UNKNOWN  47   
4     Smith    25
4

1 回答 1

0

您可以在派生列转换对话框中使用“if-else”表达式。例如,您可以尝试:

[Name] == ''?'UNKNOWN':[Name]

更多信息在这里:http: //msdn.microsoft.com/en-us/library/ms141069.aspx

于 2013-09-17T19:04:51.257 回答