<?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: England Counties JSON in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/England-Counties-JSON/m-p/3320740#M124274</link>
    <description>&lt;P&gt;this might be counties&amp;nbsp;&lt;A href="https://github.com/deldersveld/topojson/blob/master/countries/united-kingdom/uk-counties.json" target="_self"&gt;https://github.com/deldersveld/topojson/blob/master/countries/united-kingdom/uk-counties.json&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 15:42:12 GMT</pubDate>
    <dc:creator>masplin</dc:creator>
    <dc:date>2023-07-07T15:42:12Z</dc:date>
    <item>
      <title>England Counties JSON</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/England-Counties-JSON/m-p/3130665#M111384</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a JSON file containing all england counties does anyone know of a wesbite that would contain this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taylor&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 12:20:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/England-Counties-JSON/m-p/3130665#M111384</guid>
      <dc:creator>Ttaylor9870</dc:creator>
      <dc:date>2023-03-14T12:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: England Counties JSON</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/England-Counties-JSON/m-p/3132311#M111494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="415490" data-lia-user-login="Ttaylor9870" class="lia-mention lia-mention-user"&gt;Ttaylor9870&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a bit of googling and I am surprised that, indeed, there might be nothing out there. Perhaps that's a chance for a small business &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, not sure whether you like this suggestion, but maybe wikipedia can help as a workaround?&lt;BR /&gt;The result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here how I did it:&lt;/P&gt;
&lt;P&gt;Click on Get Data, use the WEB connector and paste the following URL into the URL bar:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/List_of_counties_of_the_United_Kingdom" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/List_of_counties_of_the_United_Kingdom&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Next, select table2:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lastly, do some cleansing:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here the full code in M that you should be able to copy as is:&lt;/P&gt;
&lt;PRE&gt;let
    Source = Web.BrowserContents("https://en.wikipedia.org/wiki/List_of_counties_of_the_United_Kingdom"),
    #"Extracted Table From Html" = Html.Table(Source, {{"Column1", "TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH[rowspan=""2""]:not([colspan]):nth-child(1):nth-last-child(6), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(8), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(7)"}, {"Column2", "TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH[rowspan=""2""]:not([colspan]):nth-child(1):nth-last-child(6) + TH[rowspan=""2""]:not([colspan]):nth-child(2):nth-last-child(5), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(8) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(7), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(6)"}, {"Column3", "TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH[rowspan=""2""]:not([colspan]):nth-child(1):nth-last-child(6) + TH[rowspan=""2""]:not([colspan]):nth-child(2):nth-last-child(5) + TH[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(4), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(4), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(8) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(6), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(6) + TD[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(5)"}, {"Column4", "TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH[rowspan=""2""]:not([colspan]):nth-child(1):nth-last-child(6) + TH[rowspan=""2""]:not([colspan]):nth-child(2):nth-last-child(5) + TH[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(4), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(4) + TH:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(3), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(8) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(6) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(5), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(6) + TD[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(5)"}, {"Column5", "TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH[rowspan=""2""]:not([colspan]):nth-child(1):nth-last-child(6) + TH[rowspan=""2""]:not([colspan]):nth-child(2):nth-last-child(5) + TH[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(4) + TH[rowspan=""2""]:not([colspan]):nth-child(4):nth-last-child(3), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(8) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(6) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(5):nth-last-child(4), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(6) + TD[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(4)"}, {"Column6", "TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH[rowspan=""2""]:not([colspan]):nth-child(1):nth-last-child(6) + TH[rowspan=""2""]:not([colspan]):nth-child(2):nth-last-child(5) + TH[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(4) + TH[rowspan=""2""]:not([colspan]):nth-child(4):nth-last-child(3) + TH[colspan=""2""]:not([rowspan]):nth-child(5):nth-last-child(2), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(4) + TH:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(3) + TH:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(2), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(8) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(6) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(5):nth-last-child(4) + TD:not([colspan]):not([rowspan]):nth-child(6):nth-last-child(3), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(6) + TD[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(4) + TD:not([colspan]):not([rowspan]):nth-child(5):nth-last-child(3)"}, {"Column7", "TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH[rowspan=""2""]:not([colspan]):nth-child(1):nth-last-child(6) + TH[rowspan=""2""]:not([colspan]):nth-child(2):nth-last-child(5) + TH[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(4) + TH[rowspan=""2""]:not([colspan]):nth-child(4):nth-last-child(3) + TH[colspan=""2""]:not([rowspan]):nth-child(5):nth-last-child(2), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(4) + TH:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(3) + TH:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(2) + TH:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(1), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(8) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(6) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(5):nth-last-child(4) + TD:not([colspan]):not([rowspan]):nth-child(6):nth-last-child(3) + TD:not([colspan]):not([rowspan]):nth-child(7):nth-last-child(2), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(6) + TD[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(4) + TD:not([colspan]):not([rowspan]):nth-child(5):nth-last-child(3) + TD:not([colspan]):not([rowspan]):nth-child(6):nth-last-child(2)"}, {"Column8", "TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TH[rowspan=""2""]:not([colspan]):nth-child(1):nth-last-child(6) + TH[rowspan=""2""]:not([colspan]):nth-child(2):nth-last-child(5) + TH[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(4) + TH[rowspan=""2""]:not([colspan]):nth-child(4):nth-last-child(3) + TH[colspan=""2""]:not([rowspan]):nth-child(5):nth-last-child(2) + TH[rowspan=""2""]:not([colspan]):nth-child(6):nth-last-child(1), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(8) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(6) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(5):nth-last-child(4) + TD:not([colspan]):not([rowspan]):nth-child(6):nth-last-child(3) + TD:not([colspan]):not([rowspan]):nth-child(7):nth-last-child(2) + TD:not([colspan]):not([rowspan]):nth-child(8):nth-last-child(1), TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR &amp;gt; TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(7) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(6) + TD[colspan=""2""]:not([rowspan]):nth-child(3):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(4) + TD:not([colspan]):not([rowspan]):nth-child(5):nth-last-child(3) + TD:not([colspan]):not([rowspan]):nth-child(6):nth-last-child(2) + TD:not([colspan]):not([rowspan]):nth-child(7):nth-last-child(1)"}}, [RowSelector="TABLE.wikitable.sortable.jquery-tablesorter:nth-child(12) &amp;gt; * &amp;gt; TR"]),
    #"Changed Type" = Table.TransformColumnTypes(#"Extracted Table From Html",{{"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}, {"Column8", type text}}),
    #"Promoted Headers" = Table.PromoteHeaders(#"Changed Type", [PromoteAllScalars=true]),
    #"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"County", type text}, {"Currentceremonial[2]", type text}, {"From 1974[3]", type text}, {"From 1974[3]_1", type text}, {"Postal1974–1996[4]", type text}, {"1889–1974", type text}, {"1889–1974_2", type text}, {"Before 1889", type text}}),
    #"Filtered Rows" = Table.SelectRows(#"Changed Type1", each [County] &amp;lt;&amp;gt; null and [County] &amp;lt;&amp;gt; ""),
    #"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Currentceremonial[2]", "From 1974[3]", "From 1974[3]_1", "Postal1974–1996[4]", "1889–1974", "1889–1974_2", "Before 1889"})
in
    #"Removed Columns"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are of course right, you should be using i.e. an API service, instead of letting Power BI read the HTML of wikipedia. This is quite a vulnerable one and I wouldn't use it in an enterprise project. But for small ones, it might do the job.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I suppose you are having that data already somewhere on your transactional fact table, I wonder whether your source system couldn't provide the dimension table as well?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know, if this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank" rel="noopener"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank" rel="noopener"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 02:03:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/England-Counties-JSON/m-p/3132311#M111494</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2023-03-15T02:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: England Counties JSON</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/England-Counties-JSON/m-p/3320738#M124273</link>
      <description>&lt;P&gt;This one works great for one level down LA&amp;nbsp;&lt;A href="https://martinjc.github.io/UK-GeoJSON/" target="_self"&gt;LA JSON&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This guy did a load of useful ones, but dont think counties&amp;nbsp;&lt;A href="https://github.com/martinjc/UK-GeoJSON/tree/master" target="_self"&gt;https://github.com/martinjc/UK-GeoJSON/tree/master&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 15:40:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/England-Counties-JSON/m-p/3320738#M124273</guid>
      <dc:creator>masplin</dc:creator>
      <dc:date>2023-07-07T15:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: England Counties JSON</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/England-Counties-JSON/m-p/3320740#M124274</link>
      <description>&lt;P&gt;this might be counties&amp;nbsp;&lt;A href="https://github.com/deldersveld/topojson/blob/master/countries/united-kingdom/uk-counties.json" target="_self"&gt;https://github.com/deldersveld/topojson/blob/master/countries/united-kingdom/uk-counties.json&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 15:42:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/England-Counties-JSON/m-p/3320740#M124274</guid>
      <dc:creator>masplin</dc:creator>
      <dc:date>2023-07-07T15:42:12Z</dc:date>
    </item>
  </channel>
</rss>

