<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splitting Counties and States and State Code Conversion in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737951#M2148</link>
    <description>&lt;P&gt;Perfect! Thank you very much!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 17:39:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-11T17:39:35Z</dc:date>
    <item>
      <title>Splitting Counties and States and State Code Conversion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/736830#M2084</link>
      <description>&lt;P&gt;I have a column called State/Country and it contains either a country name (e.g. Korea) or a state code (e.g. CA)&lt;/P&gt;&lt;P&gt;What I need to do is to separate those into 2 columns:&lt;/P&gt;&lt;P&gt;Var = State/Country&lt;/P&gt;&lt;P&gt;If length(Var) &amp;gt; 2 then CountryColumn = Var, StateColumn = “ “&lt;/P&gt;&lt;P&gt;Else CountryColumn=USA, StateColumn = decodeStateAbbr (??)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions: how can I write this in DAX and how can I decode state abbriviation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 19:22:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/736830#M2084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-10T19:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Counties and States and State Code Conversion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737158#M2097</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; not sure wht you mean by decode state abbreviation. here is calculated columns looks like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Country = IF( LEN(Table[Country/State]) &amp;gt; 2, Table[Country/State], "USA" )

State = IF( LEN(Table[Country/State]) &amp;gt; 2, "", Table[Country/State])
&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jul 2019 05:30:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737158#M2097</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-11T05:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Counties and States and State Code Conversion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737782#M2130</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:25:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737782#M2130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T15:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Counties and States and State Code Conversion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737786#M2132</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; sure I already did the split for you and from there you can decode to long state name.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737786#M2132</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-11T15:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Counties and States and State Code Conversion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737892#M2146</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a function to do that conversion or how is it done?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 16:52:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737892#M2146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T16:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Counties and States and State Code Conversion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737915#M2147</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; you can add another table in your model with 2 digit state code and full name and then set relatonship with that table to get the full name. Populating that table must be super easy or you can connect to wikipedia using power query to get list of states and abbreviations.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 17:06:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737915#M2147</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-07-11T17:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Counties and States and State Code Conversion</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737951#M2148</link>
      <description>&lt;P&gt;Perfect! Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 17:39:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Splitting-Counties-and-States-and-State-Code-Conversion/m-p/737951#M2148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T17:39:35Z</dc:date>
    </item>
  </channel>
</rss>

