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
BIGouders
New Member

Exporting Relationship Model

Greetings User(s),

I wonder, if it is possible to extract metadata such as the relationship model out of PowerBI destkop similar to how the metadata of an MS Excel file, such as number of Worksheets and Column Ranges, can be extacted using Interops Assemblies or VBA code.

 

4 REPLIES 4
amitchandak
Super User
Super User

@BIGouders ,

 

You have an option to analyze in excel. See if that can fit your requirements.  May not be the same stuff you wanted

https://docs.microsoft.com/en-us/power-bi/service-analyze-in-excel

 

Greetings Amitchandak,

And thanks for your direction to do more research on the subject.

Referring to your link, it mentions that in order to use the Analyze in Excel feature requires that the dataset be in Power BI Premium or that the user have a Power BI Pro license. Unfortunatly we are using PowerBI Desktop.

So when a PowerBI data analyst models the relationship among tables and introduces new columns not present in the underlying data sets, how can this metadata be extracted from PowerBI otherwise then maintaining a design document manually ?

 

Regards,

BIGouders

 

PS: Thanks to all who can contribute on answering the question 🙂

 

Hi @BIGouders ,

 

Based on my search, you cannot directly extract the data model from power bi desktop, but you can connect to this data model through Dax studio.

 

If you just want to export metadata, you can refer to the third - party article: https://xxlbi.com/blog/dax-studio-export-all-data/

 

The DataModel file in the pbix file stores the data model. It is  your Power BI In-Memory Analysis Services model. But this file can only be used by power bi.

 

For more details, please refer to third – party blog https://www.fourmoo.com/2017/05/02/what-makes-up-a-power-bi-desktop-pbix-file/

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

Greetings Dedmon Dai,

Thanks for sharing your knowledge. I checked out your links and the blog that describes how to export data from PowerBI using DAX Studio is very promising, since it states "[...]Note that all the names will be exactly as they are in the data model, including spaces[...]".

Thanks a Lot,

BIGouders

 

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.