<?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: Get data using API link to OED data in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/3834369#M1237951</link>
    <description>&lt;P&gt;Let me reply to my own question. I almost have it working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Json.Document(Web.Contents("https://api.unhcr.org/population/v1/population/?yearFrom=2010&amp;amp;coo=syr&amp;amp;coa_all=true&amp;amp;cf_type=true&amp;amp;compress=false")),
    Items = Source[items],
    #"Converted to Table" = Table.FromList(Items, Record.FieldValues)
in
    #"Converted to Table"&lt;/LI-CODE&gt;&lt;P&gt;This basically does the job. It only misses the table headers. Since I cannot use the first line value as header I have to manually do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 15:24:39 GMT</pubDate>
    <dc:creator>Nathorius</dc:creator>
    <dc:date>2024-04-12T15:24:39Z</dc:date>
    <item>
      <title>Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/242333#M107559</link>
      <description>&lt;P&gt;Can somebody help with API access.&amp;nbsp; I would like to access the economic data tables provided by the OECD.&amp;nbsp; Here is the link&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="OECD Data" href="http://www.oecd-ilibrary.org/economics/data/main-economic-indicators/composite-leading-indicators_data-00042-en?isPartOf=/content/datacollection/mei-data-en" target="_self"&gt;http://www.oecd-ilibrary.org/economics/data/main-economic-indicators/composite-leading-indicators_data-00042-en?isPartOf=/content/datacollection/mei-data-en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you tell Power BI to get this infomation?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 16:18:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/242333#M107559</guid>
      <dc:creator>sebbyp</dc:creator>
      <dc:date>2017-08-30T16:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/242877#M107780</link>
      <description>&lt;P&gt;Thy have an open API, so you don't need an API key:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let
    Source = Json.Document(Web.Contents("http://stats.oecd.org/SDMX-JSON/data/MEI_CLI/LOLITOAA+LOLITONO+LOLITOTR_STSA+LOLITOTR_GYSA+BSCICP03+CSCICP03+LORSGPRT+LORSGPNO+LORSGPTD+LORSGPOR_IXOBSA.AUS+AUT+BEL+CAN+CHL+CZE+DNK+EST+FIN+FRA+DEU+GRC+HUN+IRL+ISR+ITA+JPN+KOR+LUX+MEX+NLD+NZL+NOR+POL+PRT+SVK+SVN+ESP+SWE+CHE+TUR+GBR+USA+EA19+G4E+G-7+NAFTA+OECDE+OECD+ONM+A5M+BRA+CHN+IND+IDN+RUS+ZAF.M/all?startTime=2015-08&amp;amp;endTime=2017-07&amp;amp;dimensionAtObservation=allDimensions"))
in
    Source&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taken from here:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 08:03:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/242877#M107780</guid>
      <dc:creator>ImkeF</dc:creator>
      <dc:date>2017-08-31T08:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/242946#M107814</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1522" data-lia-user-login="ImkeF" class="lia-mention lia-mention-user"&gt;ImkeF&lt;/a&gt;thanks for your help.&amp;nbsp; The issue i am having is extracting the tables from the API link.&amp;nbsp; I cannot get the tables in a user friendly format.&amp;nbsp; Is there a known set of steps to extract the data tables which i can then work with?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 09:33:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/242946#M107814</guid>
      <dc:creator>sebbyp</dc:creator>
      <dc:date>2017-08-31T09:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243379#M108005</link>
      <description>&lt;P&gt;This function should work for all OECD-datasets via the JSON-API in Flat Format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(URL) =&amp;gt;
let

    fnConvertRecordList = (Recordlist) =&amp;gt; Table.ExpandRecordColumn(Table.FromList(Recordlist, Splitter.SplitByNothing(), null, null, ExtraValues.Error), "Column1", Record.FieldNames(Record.Combine(Table.FromList(Recordlist, Splitter.SplitByNothing(), null, null, ExtraValues.Error)[Column1]))),
    fnAddKeyToList = (list) =&amp;gt; Table.AddIndexColumn(Table.FromColumns({list}), "Key",0,1),
    Source = Json.Document(Web.Contents(URL)),
    ToTable = Table.FromRecords({Source}),
    Expand = Table.ExpandRecordColumn(ToTable, "structure", {"links", "name", "description", "dimensions", "attributes", "annotations"}, {"links", "name", "description", "dimensions", "attributes", "annotations"}),
    Attr = fnConvertRecordList(Expand[attributes]{0}[observation]),
    Dim = fnConvertRecordList(Expand[dimensions]{0}[observation]),
    Dims = Table.Combine({Attr,Dim}),
    #"Added Index1" = Table.AddIndexColumn(Dims, "Index", 1, 1),
    AddKeyToValues = Table.AddColumn(#"Added Index1", "Custom", each fnAddKeyToList([values])),
    ExpandValues = Table.ExpandTableColumn(AddKeyToValues, "Custom", {"Column1", "Key"}, {"Column1", "Key"}),
    FilterNotNull = Table.SelectRows(ExpandValues, each ([Key] &amp;lt;&amp;gt; null)),
    LookupTbl = Table.ExpandRecordColumn(FilterNotNull, "Column1", {"id", "name"}, {"id.1", "name.1"}),
    Datasets = Expand[dataSets]{0}{0}[observations],
    ConvertToTable = Record.ToTable(Datasets),
    AddKeys = Table.AddColumn(ConvertToTable, "Custom", each fnAddKeyToList(List.Combine({[Value],Text.Split([Name], ":")}))),
    Cleanup = Table.RemoveColumns(AddKeys,{"Value"}),
    ExpandValues2 = Table.ExpandTableColumn(Cleanup, "Custom", {"Column1", "Key"}, {"Value", "Key"}),
    ChgType = Table.TransformColumnTypes(ExpandValues2,{{"Value", type number}}),
    Amount = Table.AddColumn(ChgType, "Amount", each if [Key]=0 then [Value] else null),
    FillDownAmount = Table.FillDown(Amount,{"Amount"}),
    #"Filtered Rows" = Table.SelectRows(FillDownAmount, each ([Value] &amp;lt;&amp;gt; null) and ([Key] &amp;lt;&amp;gt; 0)),
    MergeLookup = Table.NestedJoin(#"Filtered Rows",{"Key", "Value"},LookupTbl,{"Index", "Key"},"Expanded Custom",JoinKind.LeftOuter),
    ExpandLookup = Table.ExpandTableColumn(MergeLookup, "Expanded Custom", {"id", "id.1"}, {"id", "id.1"}),
    Cleanup3 = Table.RemoveColumns(ExpandLookup,{"Key", "Value"}),
    Pivot = Table.Pivot(Cleanup3, List.Distinct(Cleanup3[id]), "id", "id.1"),
    MergeLookup2 = Table.NestedJoin(Pivot,{"Name"},MergeLookup,{"Name"},"Pivoted Column",JoinKind.LeftOuter),
    Expand2 = Table.ExpandTableColumn(MergeLookup2, "Pivoted Column", {"Expanded Custom"}, {"Expanded Custom"}),
    Expand3 = Table.ExpandTableColumn(Expand2, "Expanded Custom", {"name", "name.1"}, {"name.2", "name.1"}),
    AddSpace = Table.TransformColumns(Expand3,{{"name.2", each _&amp;amp;" "}}),
    Pivot2 = Table.Pivot(AddSpace, List.Distinct(AddSpace[name.2]), "name.2", "name.1"),
    Cleanup4 = Table.RemoveColumns(Pivot2,{"Name"}),
    ChgType2 = Table.TransformColumnTypes(Cleanup4,{{"Amount", type number}})
in
    ChgType2&lt;/PRE&gt;&lt;P&gt;Please give a shout if it doesn't!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 18:50:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243379#M108005</guid>
      <dc:creator>ImkeF</dc:creator>
      <dc:date>2017-08-31T18:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243798#M108138</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1522" data-lia-user-login="ImkeF" class="lia-mention lia-mention-user"&gt;ImkeF&lt;/a&gt;thank you for the code!&amp;nbsp; I am trying to use it but it is not working at my end.&amp;nbsp; I think it is something to do with the URL.&amp;nbsp; Where you have typed URL=&amp;gt; do i just add the web address or is it something a little more than that?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 07:31:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243798#M108138</guid>
      <dc:creator>sebbyp</dc:creator>
      <dc:date>2017-09-01T07:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243806#M108140</link>
      <description>&lt;P&gt;Sorry, I thought you were using that already. You have to generate your API-URL (also see pic in 1st post):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Fri, 01 Sep 2017 07:38:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243806#M108140</guid>
      <dc:creator>ImkeF</dc:creator>
      <dc:date>2017-09-01T07:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243816#M108141</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1522" data-lia-user-login="ImkeF" class="lia-mention lia-mention-user"&gt;ImkeF&lt;/a&gt;sorry im not sure what i am doing wrong. I have pasted your query into a blank query and then put the URL into source line item 3 as highlighted in the image but it is not working for me.&amp;nbsp; What should i do to get it working?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 07:46:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243816#M108141</guid>
      <dc:creator>sebbyp</dc:creator>
      <dc:date>2017-09-01T07:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243821#M108145</link>
      <description>&lt;P&gt;There shouldn't be 2 opening parenthesis after WebCall&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 07:49:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243821#M108145</guid>
      <dc:creator>ImkeF</dc:creator>
      <dc:date>2017-09-01T07:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243827#M108146</link>
      <description>&lt;P&gt;you are a genius.&amp;nbsp; It is working perfectly!!! &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 07:53:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/243827#M108146</guid>
      <dc:creator>sebbyp</dc:creator>
      <dc:date>2017-09-01T07:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/409156#M187597</link>
      <description>&lt;P&gt;Thank you so much for sharing this :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the query but I'm getting the same error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 18:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/409156#M187597</guid>
      <dc:creator>marianamarques</dc:creator>
      <dc:date>2018-05-02T18:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/409191#M187615</link>
      <description>&lt;P&gt;You're missing the escape signs (quotation marks)&amp;nbsp;for your URL-string: Web.Page( &lt;STRONG&gt;"&lt;/STRONG&gt; YourURL &lt;STRONG&gt;"&lt;/STRONG&gt; )&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 19:17:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/409191#M187615</guid>
      <dc:creator>ImkeF</dc:creator>
      <dc:date>2018-05-02T19:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/1706049#M676298</link>
      <description>&lt;P&gt;I'm trying to import data form&amp;nbsp;&lt;A href="http://data.uis.unesco.org/" target="_blank"&gt;UIS Statistics (unesco.org)&lt;/A&gt;&amp;nbsp;which uses the same system as OECD, but the Developer API tab is no longer an option, there's only SDMX as online export option now.&lt;BR /&gt;Do you think there is a way of getting data with a SDMX url? So far I've only managed to import the schema, but I don't see any data.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;And sorry for rescueing this thread!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 16:15:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/1706049#M676298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-05T16:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/1909197#M730706</link>
      <description>&lt;P&gt;Thanks for the Developer API conversion Trick&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1522" data-lia-user-login="ImkeF" class="lia-mention lia-mention-user"&gt;ImkeF&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on pulling data from this other dataset but it didnt have a Developer API option. It only had SDMX (XML) export available. Is there a workaround available for that? Please let me your thoughts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt; Analytical House Price Indicators (&lt;A href="https://www.oecd-ilibrary.org/economics/data/prices/analytical-house-price-indicators_cbcc2905-en" target="_blank"&gt;https://www.oecd-ilibrary.org/economics/data/prices/analytical-house-price-indicators_cbcc2905-en&lt;/A&gt;)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 14:17:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/1909197#M730706</guid>
      <dc:creator>lakshayreddy</dc:creator>
      <dc:date>2021-06-18T14:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/1909200#M730708</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;What i've observed is that only few datasets have Developer API while others don't. I was also looking some trick to get SDMX (XML) query into PowerBI. Please let me know if you've managed to get it done!&lt;BR /&gt;Appreciate your effort!&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 14:20:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/1909200#M730708</guid>
      <dc:creator>lakshayreddy</dc:creator>
      <dc:date>2021-06-18T14:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/1909824#M730857</link>
      <description>&lt;P&gt;Hey folks,&lt;/P&gt;
&lt;P&gt;I think they moved to a general API-page:&amp;nbsp;&lt;A href="https://data.oecd.org/api/sdmx-json-documentation/#d.en.330346" target="_blank"&gt;API Documentation (oecd.org)&lt;/A&gt;&lt;BR /&gt;So to query the house prices from 2020 and 2021 your query would look like so:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Json.Document(Web.Contents("http://stats.oecd.org/sdmx-json/data/HOUSE_PRICES?startTime=2020&amp;amp;endTime=2021"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;XML-Specs can be found here:&amp;nbsp;&lt;A href="https://data.oecd.org/api/sdmx-ml-documentation/" target="_blank"&gt;sdmx-ml-documentation (oecd.org)&lt;/A&gt;&lt;BR /&gt;Query would be so:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Xml.Tables(Web.Contents("https://stats.oecd.org/restsdmx/sdmx.ashx/GetData/HOUSE_PRICES?startTime=2020&amp;amp;endTime=2021"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Looks like you can retrieve all data with this method.&lt;BR /&gt;Please let me know how it worked out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 06:17:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/1909824#M730857</guid>
      <dc:creator>ImkeF</dc:creator>
      <dc:date>2021-06-19T06:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/1909895#M730879</link>
      <description>&lt;P&gt;Heyy&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1522" data-lia-user-login="ImkeF" class="lia-mention lia-mention-user"&gt;ImkeF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using this function after changing the&amp;nbsp;Json.Document(Web.Contents(URL)) to Xml.Tables(Web.Contents(URL)). But, I seem to get an error. Can you please tell me where I'm going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I basically want to import SDMX-XML typye OECD datasets into PowerBI. The function for Developer API aka JSON.Document is working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let&lt;BR /&gt;&lt;BR /&gt;fnConvertRecordList = (Recordlist) =&amp;gt; Table.ExpandRecordColumn(Table.FromList(Recordlist, Splitter.SplitByNothing(), null, null, ExtraValues.Error), "Column1", Record.FieldNames(Record.Combine(Table.FromList(Recordlist, Splitter.SplitByNothing(), null, null, ExtraValues.Error)[Column1]))),&lt;BR /&gt;fnAddKeyToList = (list) =&amp;gt; Table.AddIndexColumn(Table.FromColumns({list}), "Key",0,1),&lt;BR /&gt;Source = &lt;STRONG&gt;Xml.Tables(Web.Contents("https://stats.oecd.org/restsdmx/sdmx.ashx/GetData/HOUSE_PRICES?startTime=2020&amp;amp;endTime=2021")),&lt;/STRONG&gt;&lt;BR /&gt;ToTable = Table.FromRecords({Source}),&lt;BR /&gt;Expand = Table.ExpandRecordColumn(ToTable, "structure", {"links", "name", "description", "dimensions", "attributes", "annotations"}, {"links", "name", "description", "dimensions", "attributes", "annotations"}),&lt;BR /&gt;Attr = fnConvertRecordList(Expand[attributes]{0}[observation]),&lt;BR /&gt;Dim = fnConvertRecordList(Expand[dimensions]{0}[observation]),&lt;BR /&gt;Dims = Table.Combine({Attr,Dim}),&lt;BR /&gt;#"Added Index1" = Table.AddIndexColumn(Dims, "Index", 1, 1),&lt;BR /&gt;AddKeyToValues = Table.AddColumn(#"Added Index1", "Custom", each fnAddKeyToList([values])),&lt;BR /&gt;ExpandValues = Table.ExpandTableColumn(AddKeyToValues, "Custom", {"Column1", "Key"}, {"Column1", "Key"}),&lt;BR /&gt;FilterNotNull = Table.SelectRows(ExpandValues, each ([Key] &amp;lt;&amp;gt; null)),&lt;BR /&gt;LookupTbl = Table.ExpandRecordColumn(FilterNotNull, "Column1", {"id", "name"}, {"id.1", "name.1"}),&lt;BR /&gt;Datasets = Expand[dataSets]{0}{0}[observations],&lt;BR /&gt;ConvertToTable = Record.ToTable(Datasets),&lt;BR /&gt;AddKeys = Table.AddColumn(ConvertToTable, "Custom", each fnAddKeyToList(List.Combine({[Value],Text.Split([Name], ":")}))),&lt;BR /&gt;Cleanup = Table.RemoveColumns(AddKeys,{"Value"}),&lt;BR /&gt;ExpandValues2 = Table.ExpandTableColumn(Cleanup, "Custom", {"Column1", "Key"}, {"Value", "Key"}),&lt;BR /&gt;ChgType = Table.TransformColumnTypes(ExpandValues2,{{"Value", type number}}),&lt;BR /&gt;Amount = Table.AddColumn(ChgType, "Amount", each if [Key]=0 then [Value] else null),&lt;BR /&gt;FillDownAmount = Table.FillDown(Amount,{"Amount"}),&lt;BR /&gt;#"Filtered Rows" = Table.SelectRows(FillDownAmount, each ([Value] &amp;lt;&amp;gt; null) and ([Key] &amp;lt;&amp;gt; 0)),&lt;BR /&gt;MergeLookup = Table.NestedJoin(#"Filtered Rows",{"Key", "Value"},LookupTbl,{"Index", "Key"},"Expanded Custom",JoinKind.LeftOuter),&lt;BR /&gt;ExpandLookup = Table.ExpandTableColumn(MergeLookup, "Expanded Custom", {"id", "id.1"}, {"id", "id.1"}),&lt;BR /&gt;Cleanup3 = Table.RemoveColumns(ExpandLookup,{"Key", "Value"}),&lt;BR /&gt;Pivot = Table.Pivot(Cleanup3, List.Distinct(Cleanup3[id]), "id", "id.1"),&lt;BR /&gt;MergeLookup2 = Table.NestedJoin(Pivot,{"Name"},MergeLookup,{"Name"},"Pivoted Column",JoinKind.LeftOuter),&lt;BR /&gt;Expand2 = Table.ExpandTableColumn(MergeLookup2, "Pivoted Column", {"Expanded Custom"}, {"Expanded Custom"}),&lt;BR /&gt;Expand3 = Table.ExpandTableColumn(Expand2, "Expanded Custom", {"name", "name.1"}, {"name.2", "name.1"}),&lt;BR /&gt;AddSpace = Table.TransformColumns(Expand3,{{"name.2", each _&amp;amp;" "}}),&lt;BR /&gt;Pivot2 = Table.Pivot(AddSpace, List.Distinct(AddSpace[name.2]), "name.2", "name.1"),&lt;BR /&gt;Cleanup4 = Table.RemoveColumns(Pivot2,{"Name"}),&lt;BR /&gt;ChgType2 = Table.TransformColumnTypes(Cleanup4,{{"Amount", type number}})&lt;BR /&gt;in&lt;BR /&gt;ChgType2&amp;nbsp;&lt;/PRE&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;I wish there's a way. Thanks again for the help!&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 10:56:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/1909895#M730879</guid>
      <dc:creator>lakshayreddy</dc:creator>
      <dc:date>2021-06-19T10:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/3833147#M1237717</link>
      <description>&lt;P&gt;Hi Imke,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for giving a solution direction. This really helps. I suppose the workaround is still the only way to go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to understand how the let / in record to table works if you have a different field structure.&lt;/P&gt;&lt;P&gt;For example, I am trying to get data from an UNHCR api. The basic structure is the same, but the naming and columns are totally different. See:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.unhcr.org/population/v1/population/?yearFrom=2010&amp;amp;coo=syr&amp;amp;coa_all=true&amp;amp;cf_type=true&amp;amp;compress=false" target="_blank"&gt;https://api.unhcr.org/population/v1/population/?yearFrom=2010&amp;amp;coo=syr&amp;amp;coa_all=true&amp;amp;cf_type=true&amp;amp;compress=false&lt;/A&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apart from that there is a second issue with this api's, namely that they put multiple values in one row instead of making multiple rows with one value. This example would require a split lines and an extra column to define the different values (asylum type orso). Can that be done while importing in the dataflow too?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can share some light on it.&lt;/P&gt;&lt;P&gt;Best, Geert&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 08:26:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/3833147#M1237717</guid>
      <dc:creator>Nathorius</dc:creator>
      <dc:date>2024-04-12T08:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/3834369#M1237951</link>
      <description>&lt;P&gt;Let me reply to my own question. I almost have it working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Json.Document(Web.Contents("https://api.unhcr.org/population/v1/population/?yearFrom=2010&amp;amp;coo=syr&amp;amp;coa_all=true&amp;amp;cf_type=true&amp;amp;compress=false")),
    Items = Source[items],
    #"Converted to Table" = Table.FromList(Items, Record.FieldValues)
in
    #"Converted to Table"&lt;/LI-CODE&gt;&lt;P&gt;This basically does the job. It only misses the table headers. Since I cannot use the first line value as header I have to manually do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 15:24:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/3834369#M1237951</guid>
      <dc:creator>Nathorius</dc:creator>
      <dc:date>2024-04-12T15:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get data using API link to OED data</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/4315631#M1352210</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1522" data-lia-user-login="ImkeF" class="lia-mention lia-mention-user"&gt;ImkeF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I using the API I'm getting below error, I'm trying to download the Economic outlook data. Please help me how can I resolve the below error.&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;</description>
      <pubDate>Thu, 05 Dec 2024 17:10:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Get-data-using-API-link-to-OED-data/m-p/4315631#M1352210</guid>
      <dc:creator>Saurabh6919</dc:creator>
      <dc:date>2024-12-05T17:10:00Z</dc:date>
    </item>
  </channel>
</rss>

