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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Data Mashup Unzip

Hi,

 

I need to do some automation on the data mashup file and I was reading an article

https://radacad.com/exposing-m-code-and-query-metadata-of-power-bi-pbix-file

 

Here, it says that data mashup file is  a zipped file and it has 3 files in it

  • Config
  • Formulas
  • content_types

 

But i'm not able to unzip this file. Any idea why?

 

 

 

 

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @Anonymous ,

Based on my test, we can use the 7-zip tool to extract the file rather than changing it as a zip file.

qZ4TVGr3Nh.gif

Best Regards,

Teige

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi

 

I am trying to do something similar but once I modify the section.m file and try to zip it back, I am unable to open the .Pbix file. It says the file has been corrup. Any idea how to fix this @Anonymous ?

Anonymous
Not applicable

Your modification may be causing a problem for Power BI(pbix) to read it.

Anonymous
Not applicable

I am just modify a simple query section.

 

Before :

section Section1;

shared Query1 = let
Source = Oracle.Database("ABC", [HierarchicalNavigation=true, Query="select Employee_id from employees"])
in
Source;

 

After:

section Section1;

shared Query1 = let
Source = Oracle.Database("ABC", [HierarchicalNavigation=true, Query="select Employee_id,Email from employees"])
in
Source;

 

Is it possible to un-zip update this section.m file inside the DataMashup and zip it back and use it in pbix file? Any other workaround? 

Anonymous
Not applicable

Check how your editing the file. Check that the length change matches correctly with what you expected afterwared. I found that my editor (VS Code ) was adding a two Byte BOM on the front. I had to strip these to get modification to work. 

 

Jeff

Anonymous
Not applicable

Let me know if you work this out. I would also like to be able to do this.

 

Thanks

Jeff

TeigeGao
Solution Sage
Solution Sage

Hi @Anonymous ,

Based on my test, we can use the 7-zip tool to extract the file rather than changing it as a zip file.

qZ4TVGr3Nh.gif

Best Regards,

Teige

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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