Forum Discussion
sowmya2553
7 years agoHelper I
Trying to extract files from ZIP
I am trying to load the ZIP file in power BI through below query but it throws the error “We didn’t recognizes the format of your first file (). Please filter the list of files so it contains only su...
v-juanli-msft
7 years agoCommunity Support
Hi sowmya2553
As tested, with help of this blog and this thread,
I can get tables from zip file,
Click on "Binary", you could see your data.
You could open my pbix, change the file path below with yourself.
let
path = "C:\Users\maggiel\Desktop\case\6\6.28",
Source = Folder.Files(path),
#"Filtered Rows to only .zip" = Table.SelectRows(Source, each ([Extension] = ".zip")),
#"Removed Other Columns" = Table.SelectColumns(#"Filtered Rows to only .zip",{"Content"}),
#"Added Custom UnzipContents" = Table.AddColumn(#"Removed Other Columns", "Custom", each UnzipContents([Content])),
Custom = #"Added Custom UnzipContents"{0}[Custom]
in
Custom
Note, don't use the path for the zip file, but enter the path of the folder where zip file lies.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
6 years agoNot applicable
Hi there,
This doesn't work, i downloaded your file, changed the path, and received this error
Do you think you can help please?