Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
AllanBerces
Post Prodigy
Post 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.

 

AllanBerces_0-1736476438545.png

 

Thank you

1 ACCEPTED SOLUTION
123abc
Community Champion
Community Champion

Here’s a general approach to decompress ZIP files in Power Query:

  1. Load the ZIP file:

    let
        Source = Binary.Buffer(File.Contents("path_to_your_zip_file.zip"))
    in
        Source
  2. Extract 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
        ZipContents
  3. Convert 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.

View solution in original post

3 REPLIES 3
123abc
Community Champion
Community Champion

 

Please follow below coumminty links there these problems have alrady been dissucssed.

 

Zip function from MARK WHITE - Microsoft Fabric Community

 

Working With Zip Files in Power Query - Microsoft Fabric Community

 

[PowerQuery] Decompress .zip Files - Microsoft Fabric Community

 

I hope this helps!
If you found this answer helpful:

Mark it as the solution to help others find it faster.
Give it a kudo to show your appreciation!
Thank you for being an awesome community member!

123abc
Community Champion
Community Champion

Here’s a general approach to decompress ZIP files in Power Query:

  1. Load the ZIP file:

    let
        Source = Binary.Buffer(File.Contents("path_to_your_zip_file.zip"))
    in
        Source
  2. Extract 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
        ZipContents
  3. Convert 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.

Hi @123abc Thank you very much

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.