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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
NickKCI
Regular Visitor

Possible to programmatically read the connection information in a PBIX file

Hi,

 

I'm curious if there is any way to programmatically read the connection information for that data source that a PBIX file points to? 

 

I know I can rename the PBIX file to a ZIP file and look at the connection information that way but I was hoping there was a different mechanism that would allow me to do that.

 

Thanks

Nick

 

1 ACCEPTED SOLUTION

Hi @NickKCI,

If your report is published to premium workspace then you can leverage the XMLA endpoint capability. You can connect the dataset in DAX studio and you can query the data or you can use the DMVs in DAX studio to read the metadata information.

https://daxstudio.org/tutorials/getting-connected/

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


View solution in original post

3 REPLIES 3
NickKCI
Regular Visitor

Hi Hari,

Thanks for the suggestion.  I published the PBIX file to Power BI, but because the data source for this PBIX file is a live connection to an on-prem SSAS server I'm not able to see the data in Power BI.  And I'm also not able to see the data source details.

 

Ideally what I would need is some way to read this information from the PBIX file or from the local SSAS server that is running with Power BI for this file.

 

Thanks

Nick

Hi @NickKCI,

If your report is published to premium workspace then you can leverage the XMLA endpoint capability. You can connect the dataset in DAX studio and you can query the data or you can use the DMVs in DAX studio to read the metadata information.

https://daxstudio.org/tutorials/getting-connected/

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


Hariharan_R
Solution Sage
Solution Sage

Hi,

You can publish to Power BI service and use below REST api to get the data source details used on the dataset (PBIX) file.

 

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasources-in-group

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.