Forum Discussion
Andersen1
5 years agoFrequent Visitor
How to consume Stats Canada API
Hi Friends, Im trying to consume data from Stats Canada API and I have read through their WDS documentation but everything I try I run into errors. Im just wondering if anyone in the community ha...
mahoneypat
5 years agoMicrosoft Employee
It looks like a standard API. Which method/query are your requesting? If you are trying the get the one to get the CSV download, but it is zipped and unzipping files is tricky (unless it is gzip or one of the compression types Power BI handles easily). This post has a method to do it, if you are comfortable with M queries.
http://sql10.blogspot.com/2016/06/reading-zip-files-in-powerquery-m.html
If not, you should be able to download the zip file, decompress it, and then use Power BI to load the csv file data.
Regards,
Pat