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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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