Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31148

Download and unzip multiple files from URL then query csv file/s within

$
0
0

Hi all,

 

I am trying to automate a process that involves;

1 - File/s download from given fixed URL,

2 - Unzip contents,

3 - Query contained CSV file/s.

 

The URL remains fixed, but files available for download are updated at regular frequency and so do not parmeterize easily using - for example - steps discussed here by Chris Webb and others. Ideally I would like to have a table of downloaded file names to avoid downloading the same file multiple times. Having a local copy of the files downloaded would be an advantage in this case.

 

If zip files were downloaded to a local directory, there seem to be a few different approaches to unzipping contents using either R script here from  or a Power Query M language approach discussed here at Mark White's sql10 blogspot.

 

The last step has been completed using power query within Power BI, but currently relies on a manual process to download and unzip contents to a local directory.

 

I would be very interested to know anyone's experience with this.

 

Questions

Is the R script or the Power Query M the best approach for now given the rate at which Power BI data connectors are being developed ?

Is a seamless download , unzip and query all within Power BI too far away ?


Viewing all articles
Browse latest Browse all 31148

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>