<?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: Getting data from Stats Canada API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/3540579#M45392</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Csv.Document(Web.Contents("https://www150.statcan.gc.ca"
                                       ,[RelativePath = "t1/tbl1/en/dtl!downloadDbLoadingData-nonTraduit.action?pid=1410035401&amp;amp;latestN=1&amp;amp;startDate=&amp;amp;endDate=&amp;amp;csvLocale=en&amp;amp;selectedMembers=%5B%5B%5D%2C%5B109%5D%5D&amp;amp;checkedLevels=0D1"
                                       ])
                        ,[Delimiter=",", Encoding=65001, QuoteStyle=QuoteStyle.Csv]),
    #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"REF_DATE", type date}, {"GEO", type text}, {"DGUID", type text}, {"Effective date", type text}, {"UOM", type text}, {"UOM_ID", Int64.Type}, {"SCALAR_FACTOR", type text}, {"SCALAR_ID", Int64.Type}, {"VECTOR", type text}, {"COORDINATE", type number}, {"VALUE", type number}, {"STATUS", type text}, {"SYMBOL", type text}, {"TERMINATED", type text}, {"DECIMALS", Int64.Type}})
in
    #"Changed Type"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For some reason I can't get the Query part to work, but the RelativePath should already give you the required flexibility&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Nov 2023 01:41:01 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-11-19T01:41:01Z</dc:date>
    <item>
      <title>Getting data from Stats Canada API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/3535663#M45350</link>
      <description>&lt;P&gt;Good evening!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help! I have a question, I want to import the data from Statistics Canada, I thought I would be able to pull the tables via "&lt;A href="https://www.statcan.gc.ca/en/developers/wds/user-guide#a12-5a" target="_self"&gt;Web Data Service&lt;/A&gt;" but I was wondering if you recomend other ways to import the data tables and if this tables will be updated automatically as the site updates their numbers? An example of the table I want to pull is this one:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www150.statcan.gc.ca/t1/tbl1/en/cv!recreate.action?pid=1410035401&amp;amp;selectedNodeIds=1D47,1D48,1D49,1D50&amp;amp;checkedLevels=1D1&amp;amp;refPeriods=20140101,20231201&amp;amp;dimensionLayouts=layout3,layout2,layout3&amp;amp;vectorDisplay=false" target="_blank" rel="noopener"&gt;https://www150.statcan.gc.ca/t1/tbl1/en/cv!recreate.action?pid=1410035401&amp;amp;selectedNodeIds=1D47,1D48,1D49,1D50&amp;amp;checkedLevels=1D1&amp;amp;refPeriods=20140101,20231201&amp;amp;dimensionLayouts=layout3,layout2,layout3&amp;amp;vectorDisplay=false&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to use Web API Connector for the download links provided in "Download Options" but it was not giving me the data as per the above link.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can get this data into powerbi without needed to manually updating file?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 18:10:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/3535663#M45350</guid>
      <dc:creator>karansingla0311</dc:creator>
      <dc:date>2023-11-15T18:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data from Stats Canada API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/3540579#M45392</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Csv.Document(Web.Contents("https://www150.statcan.gc.ca"
                                       ,[RelativePath = "t1/tbl1/en/dtl!downloadDbLoadingData-nonTraduit.action?pid=1410035401&amp;amp;latestN=1&amp;amp;startDate=&amp;amp;endDate=&amp;amp;csvLocale=en&amp;amp;selectedMembers=%5B%5B%5D%2C%5B109%5D%5D&amp;amp;checkedLevels=0D1"
                                       ])
                        ,[Delimiter=",", Encoding=65001, QuoteStyle=QuoteStyle.Csv]),
    #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"REF_DATE", type date}, {"GEO", type text}, {"DGUID", type text}, {"Effective date", type text}, {"UOM", type text}, {"UOM_ID", Int64.Type}, {"SCALAR_FACTOR", type text}, {"SCALAR_ID", Int64.Type}, {"VECTOR", type text}, {"COORDINATE", type number}, {"VALUE", type number}, {"STATUS", type text}, {"SYMBOL", type text}, {"TERMINATED", type text}, {"DECIMALS", Int64.Type}})
in
    #"Changed Type"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For some reason I can't get the Query part to work, but the RelativePath should already give you the required flexibility&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2023 01:41:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/3540579#M45392</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-11-19T01:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data from Stats Canada API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/3545500#M45444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;lbendlin,&lt;BR /&gt;&lt;BR /&gt;This worked. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 20:24:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/3545500#M45444</guid>
      <dc:creator>karansingla0311</dc:creator>
      <dc:date>2023-11-21T20:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data from Stats Canada API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/4422579#M59608</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution you have provided doesn't work for this url:&lt;BR /&gt;&lt;A href="https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1410037901&amp;amp;pickMembers%5B0%5D=1.12&amp;amp;cubeTimeFrame.startMonth=12&amp;amp;cubeTimeFrame.startYear=2024&amp;amp;cubeTimeFrame.endMonth=12&amp;amp;cubeTimeFrame.endYear=2024&amp;amp;referencePeriods=20241201%2C20241201" target="_blank"&gt;Employment by industry, three-month moving average, unadjusted for seasonality, inactive&lt;/A&gt;&lt;BR /&gt;Help appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 18:48:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/4422579#M59608</guid>
      <dc:creator>mkjit256</dc:creator>
      <dc:date>2025-02-21T18:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data from Stats Canada API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/4422696#M59610</link>
      <description>&lt;P&gt;You can modify your M code to accommodate the new URL&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www150.statcan.gc.ca/t1/tbl1/en/dtl!downloadDbLoadingData-nonTraduit.action?pid=1410037901&amp;amp;latestN=0&amp;amp;startDate=20241201&amp;amp;endDate=20241201&amp;amp;csvLocale=en&amp;amp;selectedMembers=%5B%5B12%5D%2C%5B%5D%5D&amp;amp;checkedLevels=1D1%2C1D2%2C1D3" target="_blank"&gt;https://www150.statcan.gc.ca/t1/tbl1/en/dtl!downloadDbLoadingData-nonTraduit.action?pid=1410037901&amp;amp;latestN=0&amp;amp;startDate=20241201&amp;amp;endDate=20241201&amp;amp;csvLocale=en&amp;amp;selectedMembers=%5B%5B12%5D%2C%5B%5D%5D&amp;amp;checkedLevels=1D1%2C1D2%2C1D3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 22:00:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-data-from-Stats-Canada-API/m-p/4422696#M59610</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-21T22:00:05Z</dc:date>
    </item>
  </channel>
</rss>

