<?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: Power BI &amp;amp; Post Codes API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3375900#M43835</link>
    <description>&lt;P&gt;Hey dude,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was looking into this because I really wanted the postcodes.io option to work and I made it work!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;For multiple postcodes hehe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I simply input the postcodes request with 1 hard coded postcode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;let&lt;BR /&gt;Source = Json.Document(Web.Contents("api.postcodes.io/postcodes/sr5 2lq")),&lt;BR /&gt;#"Converted to Table" = Table.FromRecords({Source}),&lt;BR /&gt;#"Expanded result" = Table.ExpandRecordColumn(#"Converted to Table", "result", {"postcode", "quality", "eastings", "northings", "country", "nhs_ha", "longitude", "latitude", "european_electoral_region", "primary_care_trust", "region", "lsoa", "msoa", "incode", "outcode", "parliamentary_constituency", "admin_district", "parish", "admin_county", "date_of_introduction", "admin_ward", "ced", "ccg", "nuts", "pfa", "codes"}, {"result.postcode", "result.quality", "result.eastings", "result.northings", "result.country", "result.nhs_ha", "result.longitude", "result.latitude", "result.european_electoral_region", "result.primary_care_trust", "result.region", "result.lsoa", "result.msoa", "result.incode", "result.outcode", "result.parliamentary_constituency", "result.admin_district", "result.parish", "result.admin_county", "result.date_of_introduction", "result.admin_ward", "result.ced", "result.ccg", "result.nuts", "result.pfa", "result.codes"}),&lt;BR /&gt;#"Expanded result.codes" = Table.ExpandRecordColumn(#"Expanded result", "result.codes", {"admin_district", "admin_county", "admin_ward", "parish", "parliamentary_constituency", "ccg", "ccg_id", "ced", "nuts", "lsoa", "msoa", "lau2", "pfa"}, {"result.codes.admin_district", "result.codes.admin_county", "result.codes.admin_ward", "result.codes.parish", "result.codes.parliamentary_constituency", "result.codes.ccg", "result.codes.ccg_id", "result.codes.ced", "result.codes.nuts", "result.codes.lsoa", "result.codes.msoa", "result.codes.lau2", "result.codes.pfa"})&lt;BR /&gt;in&lt;BR /&gt;#"Expanded result.codes"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I looked at the code and extraced the steps I needed for custom function&lt;/P&gt;&lt;P&gt;3. For bulk postcode check - you will first need to create a column that is simply postcodes.io url &amp;amp; "postcode" in whatever column you have it in:&lt;BR /&gt;= Table.AddColumn(#"Trimmed Text", "URL", each "api.postcodes.io/postcodes/"&amp;amp;[unit_postcode])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Next step is telling power query that is it JSON doc and how to treat it:&lt;BR /&gt;= Table.AddColumn(#"Added Custom1", "Custom", each Json.Document(Web.Contents([URL])))&lt;BR /&gt;&lt;BR /&gt;5. expand it:&lt;BR /&gt;= Table.ExpandRecordColumn(#"Added Custom", "Custom", {"status", "result"}, {"status", "result"})&lt;BR /&gt;&lt;BR /&gt;6. Final step - get all DIMs that you want:&lt;BR /&gt;= Table.ExpandRecordColumn(#"Expanded Custom", "result", {"postcode", "quality", "country", "longitude", "latitude", "region", "admin_county", "admin_ward"}, {"postcode", "quality", "country", "longitude", "latitude", "region", "admin_county", "admin_ward"})&lt;BR /&gt;&lt;BR /&gt;7. Initially I set it up as custom function but then deleted the function and embedded it in the Power Query steps (step by step)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hofrats_1-1691742410289.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/954245i5F29D15125F3D41E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hofrats_1-1691742410289.png" alt="hofrats_1-1691742410289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hofrats_2-1691742422391.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/954246i83F9AD0FDB10FAE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hofrats_2-1691742422391.png" alt="hofrats_2-1691742422391.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hofrats_3-1691742437848.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/954247i69DD328B9737FB6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hofrats_3-1691742437848.png" alt="hofrats_3-1691742437848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hofrats_4-1691742608878.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/954249i1456E667F8FB05BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hofrats_4-1691742608878.png" alt="hofrats_4-1691742608878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps! Also, this is the first time I have done a solution &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; so please....try it and lets be honest...this is the SOLUTION for this problem! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Have good one!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2023 08:30:15 GMT</pubDate>
    <dc:creator>hofrats</dc:creator>
    <dc:date>2023-08-11T08:30:15Z</dc:date>
    <item>
      <title>Power BI &amp; Post Codes API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/2373692#M34757</link>
      <description>&lt;P&gt;Apologies for what is probably a pretty basic question but I have only really been using Power BI to connect to Excel &amp;amp; SQL Server so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a CSV file containing the post codes of customers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to connect to a free online API I have found:&amp;nbsp;&lt;A href="https://postcodes.io/" target="_blank"&gt;https://postcodes.io/&lt;/A&gt;&amp;nbsp;that I am hoping will return a table in Power BI that will contain a post code to form a relationship to my customer post code but will provide other useful information such as lat/long/county/ward etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Get Data &amp;gt; Web &amp;gt; inputting the&amp;nbsp;&lt;A href="https://postcodes.io/" target="_blank"&gt;https://postcodes.io/&lt;/A&gt;&amp;nbsp;link and am able to return a single post code but am struggling when trying to return more than one using the 'Bulk lookup postcodes' or 'Bulk reverse geocoding' despite these working great on the test requests on the website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wondering if anybody would please be able to help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 22:33:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/2373692#M34757</guid>
      <dc:creator>WG-PBI</dc:creator>
      <dc:date>2022-03-03T22:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI &amp; Post Codes API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/2375913#M34775</link>
      <description>&lt;P&gt;Provide a sample of your csv file. Make sure to include more than 100 codes (that's the limit for the bulk call)&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 23:01:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/2375913#M34775</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-03-04T23:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI &amp; Post Codes API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/2383024#M34837</link>
      <description>&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to resolve my query by copying the method used here:&amp;nbsp;&lt;A href="https://sqldusty.com/2016/04/26/power-bi-and-the-bing-maps-api/" target="_blank"&gt;https://sqldusty.com/2016/04/26/power-bi-and-the-bing-maps-api/&lt;/A&gt;&amp;nbsp;(in case anyone else has a similar problem).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a custom function to call the API for each instance of a postcode found in the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 08:32:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/2383024#M34837</guid>
      <dc:creator>WG-PBI</dc:creator>
      <dc:date>2022-03-09T08:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI &amp; Post Codes API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3375900#M43835</link>
      <description>&lt;P&gt;Hey dude,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was looking into this because I really wanted the postcodes.io option to work and I made it work!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;For multiple postcodes hehe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I simply input the postcodes request with 1 hard coded postcode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;let&lt;BR /&gt;Source = Json.Document(Web.Contents("api.postcodes.io/postcodes/sr5 2lq")),&lt;BR /&gt;#"Converted to Table" = Table.FromRecords({Source}),&lt;BR /&gt;#"Expanded result" = Table.ExpandRecordColumn(#"Converted to Table", "result", {"postcode", "quality", "eastings", "northings", "country", "nhs_ha", "longitude", "latitude", "european_electoral_region", "primary_care_trust", "region", "lsoa", "msoa", "incode", "outcode", "parliamentary_constituency", "admin_district", "parish", "admin_county", "date_of_introduction", "admin_ward", "ced", "ccg", "nuts", "pfa", "codes"}, {"result.postcode", "result.quality", "result.eastings", "result.northings", "result.country", "result.nhs_ha", "result.longitude", "result.latitude", "result.european_electoral_region", "result.primary_care_trust", "result.region", "result.lsoa", "result.msoa", "result.incode", "result.outcode", "result.parliamentary_constituency", "result.admin_district", "result.parish", "result.admin_county", "result.date_of_introduction", "result.admin_ward", "result.ced", "result.ccg", "result.nuts", "result.pfa", "result.codes"}),&lt;BR /&gt;#"Expanded result.codes" = Table.ExpandRecordColumn(#"Expanded result", "result.codes", {"admin_district", "admin_county", "admin_ward", "parish", "parliamentary_constituency", "ccg", "ccg_id", "ced", "nuts", "lsoa", "msoa", "lau2", "pfa"}, {"result.codes.admin_district", "result.codes.admin_county", "result.codes.admin_ward", "result.codes.parish", "result.codes.parliamentary_constituency", "result.codes.ccg", "result.codes.ccg_id", "result.codes.ced", "result.codes.nuts", "result.codes.lsoa", "result.codes.msoa", "result.codes.lau2", "result.codes.pfa"})&lt;BR /&gt;in&lt;BR /&gt;#"Expanded result.codes"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I looked at the code and extraced the steps I needed for custom function&lt;/P&gt;&lt;P&gt;3. For bulk postcode check - you will first need to create a column that is simply postcodes.io url &amp;amp; "postcode" in whatever column you have it in:&lt;BR /&gt;= Table.AddColumn(#"Trimmed Text", "URL", each "api.postcodes.io/postcodes/"&amp;amp;[unit_postcode])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Next step is telling power query that is it JSON doc and how to treat it:&lt;BR /&gt;= Table.AddColumn(#"Added Custom1", "Custom", each Json.Document(Web.Contents([URL])))&lt;BR /&gt;&lt;BR /&gt;5. expand it:&lt;BR /&gt;= Table.ExpandRecordColumn(#"Added Custom", "Custom", {"status", "result"}, {"status", "result"})&lt;BR /&gt;&lt;BR /&gt;6. Final step - get all DIMs that you want:&lt;BR /&gt;= Table.ExpandRecordColumn(#"Expanded Custom", "result", {"postcode", "quality", "country", "longitude", "latitude", "region", "admin_county", "admin_ward"}, {"postcode", "quality", "country", "longitude", "latitude", "region", "admin_county", "admin_ward"})&lt;BR /&gt;&lt;BR /&gt;7. Initially I set it up as custom function but then deleted the function and embedded it in the Power Query steps (step by step)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hofrats_1-1691742410289.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/954245i5F29D15125F3D41E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hofrats_1-1691742410289.png" alt="hofrats_1-1691742410289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hofrats_2-1691742422391.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/954246i83F9AD0FDB10FAE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hofrats_2-1691742422391.png" alt="hofrats_2-1691742422391.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hofrats_3-1691742437848.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/954247i69DD328B9737FB6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hofrats_3-1691742437848.png" alt="hofrats_3-1691742437848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hofrats_4-1691742608878.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/954249i1456E667F8FB05BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hofrats_4-1691742608878.png" alt="hofrats_4-1691742608878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps! Also, this is the first time I have done a solution &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; so please....try it and lets be honest...this is the SOLUTION for this problem! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Have good one!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 08:30:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3375900#M43835</guid>
      <dc:creator>hofrats</dc:creator>
      <dc:date>2023-08-11T08:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI &amp; Post Codes API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3375958#M43837</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/601748"&gt;@hofrats&lt;/a&gt;&amp;nbsp;please read about the RelativePath and Query parameters of the Web.Contents() function. Those will be required for service refreshes.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 09:02:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3375958#M43837</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-08-11T09:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI &amp; Post Codes API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3936255#M52730</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/309572"&gt;@WG-PBI&lt;/a&gt;&amp;nbsp;are you please able to share the code you are using as an example? I am &lt;SPAN&gt;struggling&amp;nbsp;&lt;/SPAN&gt;with this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 13:53:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3936255#M52730</guid>
      <dc:creator>Dan44</dc:creator>
      <dc:date>2024-05-21T13:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI &amp; Post Codes API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3936281#M52732</link>
      <description>&lt;P&gt;In PowerQuery &amp;gt; New Source &amp;gt; Blank Query&lt;BR /&gt;&lt;BR /&gt;Then paste:&lt;/P&gt;&lt;P&gt;= (address as text) =&amp;gt;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = Json.Document(Web.Contents("&lt;A href="http://api.postcodes.io/postcodes/" target="_blank"&gt;http://api.postcodes.io/postcodes/&lt;/A&gt;"&amp;amp;address&amp;amp;"?0=xml&amp;amp;key=")),&lt;BR /&gt;#"Converted to Table" = Table.FromRecords({Source}),&lt;BR /&gt;#"Expanded result" = Table.ExpandRecordColumn(#"Converted to Table", "result", {"postcode", "quality", "eastings", "northings", "country", "nhs_ha", "longitude", "latitude", "european_electoral_region", "primary_care_trust", "region", "lsoa", "msoa", "incode", "outcode", "parliamentary_constituency", "admin_district", "parish", "admin_county", "admin_ward", "ced", "ccg", "nuts", "codes"}, {"result.postcode", "result.quality", "result.eastings", "result.northings", "result.country", "result.nhs_ha", "result.longitude", "result.latitude", "result.european_electoral_region", "result.primary_care_trust", "result.region", "result.lsoa", "result.msoa", "result.incode", "result.outcode", "result.parliamentary_constituency", "result.admin_district", "result.parish", "result.admin_county", "result.admin_ward", "result.ced", "result.ccg", "result.nuts", "result.codes"}),&lt;BR /&gt;#"Expanded result.codes" = Table.ExpandRecordColumn(#"Expanded result", "result.codes", {"admin_district", "admin_county", "admin_ward", "parish", "parliamentary_constituency", "ccg", "ccg_id", "ced", "nuts", "lsoa", "msoa", "lau2"}, {"result.codes.admin_district", "result.codes.admin_county", "result.codes.admin_ward", "result.codes.parish", "result.codes.parliamentary_constituency", "result.codes.ccg", "result.codes.ccg_id", "result.codes.ced", "result.codes.nuts", "result.codes.lsoa", "result.codes.msoa", "result.codes.lau2"}),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(#"Expanded result.codes",{{"status", Int64.Type}, {"result.postcode", type text}, {"result.quality", Int64.Type}, {"result.eastings", Int64.Type}, {"result.northings", Int64.Type}, {"result.country", type text}, {"result.nhs_ha", type text}, {"result.longitude", type number}, {"result.latitude", type number}, {"result.european_electoral_region", type text}, {"result.primary_care_trust", type text}, {"result.region", type text}, {"result.lsoa", type text}, {"result.msoa", type text}, {"result.incode", type text}, {"result.outcode", type text}, {"result.parliamentary_constituency", type text}, {"result.admin_district", type text}, {"result.parish", type text}, {"result.admin_county", type text}, {"result.admin_ward", type text}, {"result.ced", type text}, {"result.ccg", type text}, {"result.nuts", type text}, {"result.codes.admin_district", type text}, {"result.codes.admin_county", type text}, {"result.codes.admin_ward", type text}, {"result.codes.parish", type text}, {"result.codes.parliamentary_constituency", type text}, {"result.codes.ccg", type text}, {"result.codes.ccg_id", type text}, {"result.codes.ced", type text}, {"result.codes.nuts", type text}, {"result.codes.lsoa", type text}, {"result.codes.msoa", type text}, {"result.codes.lau2", type text}})&lt;BR /&gt;in&lt;BR /&gt;#"Changed Type"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and then in the table that contains your postcodes you can add a custom column with the formula:&lt;BR /&gt;=&amp;nbsp;nameofyourfunction(Text.Replace([postcode],"&amp;amp;"," and "))&lt;BR /&gt;&lt;BR /&gt;You can then expand your custom column to get the results from postcodes.io&lt;BR /&gt;&lt;BR /&gt;Not sure if this is best practice or if there is a better way but worked for me!&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 14:09:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3936281#M52732</guid>
      <dc:creator>WG-PBI</dc:creator>
      <dc:date>2024-05-21T14:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI &amp; Post Codes API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3939821#M52779</link>
      <description>&lt;P&gt;Thanks for that and I have now got it working in Power BI desktop. However, I am having issues configuring this in Fabric whether it be a dataflow, datamart or publishing my PBI semantic model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please let me know what approach you are taking to schedule refresh this data? As from MS learn it states the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In most cases, Power BI semantic models that use dynamic data sources can't be refreshed in the Power BI service. There are a few exceptions in which dynamic data sources can be refreshed in the Power BI service, such as when using the RelativePath and Query options with the Web.Contents M function. Queries that reference Power Query parameters can also be refreshed.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 12:42:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3939821#M52779</guid>
      <dc:creator>Dan44</dc:creator>
      <dc:date>2024-05-22T12:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI &amp; Post Codes API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3939869#M52780</link>
      <description>&lt;P&gt;Ah sorry I cannot help you, I refresh manually in Power BI desktop and publish to the workspace (infrequently for a quartlery meeting)&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 13:03:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-amp-Post-Codes-API/m-p/3939869#M52780</guid>
      <dc:creator>WG-PBI</dc:creator>
      <dc:date>2024-05-22T13:03:35Z</dc:date>
    </item>
  </channel>
</rss>

