Forum Discussion
Anonymous
7 years agoNot applicable
Splitting Counties and States and State Code Conversion
I have a column called State/Country and it contains either a country name (e.g. Korea) or a state code (e.g. CA) What I need to do is to separate those into 2 columns: Var = State/Country If leng...
- 7 years ago
Anonymous not sure wht you mean by decode state abbreviation. here is calculated columns looks like
Country = IF( LEN(Table[Country/State]) > 2, Table[Country/State], "USA" ) State = IF( LEN(Table[Country/State]) > 2, "", Table[Country/State])
Anonymous
7 years agoNot applicable
Thank you! By decoding I mean converting CA to California, NY to New York, etc. May be I should split the column first and then decode the State?
parry2k
Super User
7 years agoAnonymous sure I already did the split for you and from there you can decode to long state name.