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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
michaelshparber
Advocate V
Advocate V

Extract XML file from ZIP using Power Query

Hello friends,

I have a file named "data.zip" that is updated daily in my onedrive.

It contains another file named "details.xml" that I want to import to PowerBI (.zip contains other files, too, but I need only this one).

I need to do this automatically so I can schedule the refresh without "unzipping" manually.

I have found some sources that should work with excel/csv files, but they are not working with xml.

http://sql10.blogspot.com/2016/06/reading-zip-files-in-powerquery-m.html

https://www.excelandpowerbi.com/?p=155

Please help.

Michael

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @michaelshparber ,

 

Based on my research, it is not supported yet currently. There is an idea about that you can vote it up to make this feature coming sooner.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/7084254-read-from-zip-files

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

I am pretty sure you can do it.

Since someone managed to extract Excel/Csv from zip - it means that zip files CAN be read.

And since Power BI works fine with XML - then it IS possible.

I just need help with the code that extracts XML from zip...

Please help

Thanks

 

Did you ever get this working for a XML file?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.