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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
arathnayake
New Member

Extract data in Power Query from a .mdb file saved as a ZIP

Need assistance in extracting data in Power Query from a .mdb file saved as a ZIP.

1 ACCEPTED SOLUTION
jennratten
Super User
Super User

You will need to use a Binary function to access the contents of the zipped folder.  Then you can use the Access Database connector to access the contents of your .mdb file.  The binary functions have different options so I use a custom function for this.  

 

Sample pbix

Get Data from a File in a Zipped Folder.pbix

Documentation on the Access.Database Connector

https://docs.microsoft.com/en-us/power-query/connectors/accessdatabase 

 

In this example I have four objects in the query pane inside of Power Query.

  1. The custom function that accesses the contents of the zipped folder.
  2. A parameter for the path to my zipped folder (ending in .zip).
  3. A parameter for the name of my mdb file (ending in .mdb).
  4. A query that invokes the custom function and then uses the Access.Database connector to access the contents of the mdb file.

jennratten_0-1632051184451.png

Preview of the FileContents query showing the content is successfully accessed.

jennratten_1-1632051258304.png

 

View solution in original post

2 REPLIES 2
jennratten
Super User
Super User

You will need to use a Binary function to access the contents of the zipped folder.  Then you can use the Access Database connector to access the contents of your .mdb file.  The binary functions have different options so I use a custom function for this.  

 

Sample pbix

Get Data from a File in a Zipped Folder.pbix

Documentation on the Access.Database Connector

https://docs.microsoft.com/en-us/power-query/connectors/accessdatabase 

 

In this example I have four objects in the query pane inside of Power Query.

  1. The custom function that accesses the contents of the zipped folder.
  2. A parameter for the path to my zipped folder (ending in .zip).
  3. A parameter for the name of my mdb file (ending in .mdb).
  4. A query that invokes the custom function and then uses the Access.Database connector to access the contents of the mdb file.

jennratten_0-1632051184451.png

Preview of the FileContents query showing the content is successfully accessed.

jennratten_1-1632051258304.png

 

Great, this worked well. Thanks.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors