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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
prashantbucha
New Member

Extract Data from Power BI(pbix) file using code

Is there a way to extract data rows from tables using the .pbix file?

On researching about the files that comprises the .pbix file, i found that the data is contained in a file named 'DataModel' which is a backup created using Xpress9 Compression. I could not find any documentation/implementation or any other way to decompress a Xpress9 compressed data. Could you please help me on that?

2 REPLIES 2
Stachu
Community Champion
Community Champion

you can do it using DAX studio
https://www.sqlbi.com/tools/dax-studio/


this article may be helful as well - it explains how connection to local host is managed
http://biinsight.com/exporting-data-from-power-bi-desktop-to-excel-and-csv-part-2-importing-power-bi...



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

7-zip can do it from the command-line

 

add the directory where the 7z.exe lives to your PATH environment variable

change to the directory where you extracted the .pbix file

issue the command:

7z x DataMashup -o".\DataMashupDir\" -aoa

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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