Forum Discussion

AwatefM's avatar
AwatefM
Frequent Visitor
2 years ago
Solved

Trouble Extracting CSV from Zipped Directory on Web Using Power Query

I want to import the file "GeolocalisationEtablissement_Sirene_pour_etudes_statistiques_utf8.csv", which is regularly updated on the French government website. I can directly download the URL of th...
  • ibarrau's avatar
    ibarrau
    2 years ago

    Hi Greg, thanks for reaching. The file seems to have a compression that's not allowed by the methods in the power query script. Zips have several settings for compression that makes kind of difficult to create a function that works for almost all of them. They way your file looks like should work with this alternativa function for extracting:

    https://github.com/Michael19842/PowerBiFunctions/blob/main/ZipFile/Unzip.m

    Remember this function only extracts. The interpretation of the file inside it's a different thing.

    I hope that helps,