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

The Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

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.