Forum Discussion
AllanBerces
1 year agoPost Prodigy
Zip function from MARK WHITE
Hi good day, Can anyone share the query function by MARK WHITE, coz now show error on his page. Thank you
- 1 year ago
Here’s a general approach to decompress ZIP files in Power Query:
Load the ZIP file:
let Source = Binary.Buffer(File.Contents("path_to_your_zip_file.zip")) in SourceExtract the contents:
let Source = Binary.Buffer(File.Contents("path_to_your_zip_file.zip")), ZipStart = Binary.Start(Source, 4), ZipEnd = Binary.End(Source, 4), ZipContents = Binary.Middle(Source, ZipStart, ZipEnd) in ZipContentsConvert the binary data to a table:
let Source = Binary.Buffer(File.Contents("path_to_your_zip_file.zip")), ZipStart = Binary.Start(Source, 4), ZipEnd = Binary.End(Source, 4), ZipContents = Binary.Middle(Source, ZipStart, ZipEnd), TableFromZip = Table.FromList(ZipContents, Splitter.SplitByNothing(), null, null, ExtraValues.Error) in TableFromZip
Copied from AI Tool.
123abc
1 year agoCommunity Champion
Here’s a general approach to decompress ZIP files in Power Query:
Load the ZIP file:
let Source = Binary.Buffer(File.Contents("path_to_your_zip_file.zip")) in SourceExtract the contents:
let Source = Binary.Buffer(File.Contents("path_to_your_zip_file.zip")), ZipStart = Binary.Start(Source, 4), ZipEnd = Binary.End(Source, 4), ZipContents = Binary.Middle(Source, ZipStart, ZipEnd) in ZipContentsConvert the binary data to a table:
let Source = Binary.Buffer(File.Contents("path_to_your_zip_file.zip")), ZipStart = Binary.Start(Source, 4), ZipEnd = Binary.End(Source, 4), ZipContents = Binary.Middle(Source, ZipStart, ZipEnd), TableFromZip = Table.FromList(ZipContents, Splitter.SplitByNothing(), null, null, ExtraValues.Error) in TableFromZip
Copied from AI Tool.
AllanBerces
1 year agoPost Prodigy
Hi 123abc Thank you very much