Skip to main content

Power BI

Needs Votes

Read from zip files

Vote (51) Share
Taylor Clark's profile image

Taylor Clark on 12 Feb 2015 09:22:39

Allow me to browse and read from a zip file

Comments (6)
Taylor Clark's profile image Profile Picture

Jason Grundahl on 07 Feb 2024 14:31:24

RE: Read from zip files

Agreed.It would be nice to have native tools for unzipping files that contain multiple data files into a DataLake for further ETL processing with pipelines. This would allow users to download, unzip, process (ETL) and consume data using an automated end-to-end process.Thanks

Taylor Clark's profile image Profile Picture

Michael on 05 Jul 2020 23:42:44

RE: Read from zip files

Not just locally, but an online one as well to allow for automatic refreshing (like the web connector does with a table in a website).

Taylor Clark's profile image Profile Picture

Julio Caubín on 05 Jul 2020 23:06:25

RE: Read from zip files

Open CSV zipped files could be very useful.

Taylor Clark's profile image Profile Picture

Stefan on 05 Jul 2020 22:42:13

RE: Read from zip files

Create a function using the code here
http://sql10.blogspot.com.au/2016/06/reading-zip-files-in-powerquery-m.html

Then to iterate over the files on the web page, do something like

let
GetCSVContents = (data) as table =>
let
files= unzipFile(data[Content]),
csv=Csv.Document(files[Content],[Delimiter=",", Columns=10, Encoding=1252, QuoteStyle=QuoteStyle.None])
in
csv,
f=unzipFile(Web.Contents("http://blah.com")),
combine=Table.AddColumn(f,"Contents",each GetCSVContents(_))
in
combine

Taylor Clark's profile image Profile Picture

B129 on 05 Jul 2020 22:19:46

RE: Read from zip files

Maybe this can help you
http://www.excelandpowerbi.com/?p=155

Taylor Clark's profile image Profile Picture

Kawabata Yoshihiro on 05 Jul 2020 22:06:21

RE: Read from zip files

A lot of zip files are published by Government's web site in Japan.
These zip files include Excel files, CSV files.
Some zip files have folders in it.
I want to use Excel/CSV files as Power BI' "Web" data source,
to no-download/no-expand/updatable these files.