Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

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...
  • parry2k's avatar
    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])