cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sdegroot
Helper I
Helper I

Is there a way to view all SQL tables used in our organization's Power BI workspaces?

Hi there, our organization has about 25 Power BI workspaces and 200 power BI reports. Most reports are fed using SQL and we are now looking to list all SQL tables used so that the correct report writers are notified of any changes. Any suggestions on doing this?
1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @sdegroot 

You can try using Power BI REST APIs to get a list of datasources for a specified dataset.

Datasets - Get Datasources (Power BI Power BI REST APIs)

Datasets - Get Datasources In Group (Power BI Power BI REST APIs)

 

And get a list of gateway datasources for a specified dataset.

Datasets - Get Gateway Datasources (Power BI Power BI REST APIs) 

Datasets - Get Gateway Datasources In Group (Power BI Power BI REST APIs)

 

Hope this helps.

Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

3 REPLIES 3
sdegroot
Helper I
Helper I

Thanks! This seems to only show the gateway names a reporter chooses for the published pbix, however we are looking for the SQL table names. 

This will only give you the database and server, not the tables. I don't see anything in the API or PowerShell that will drill down that far.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
v-jingzhang
Community Support
Community Support

Hi @sdegroot 

You can try using Power BI REST APIs to get a list of datasources for a specified dataset.

Datasets - Get Datasources (Power BI Power BI REST APIs)

Datasets - Get Datasources In Group (Power BI Power BI REST APIs)

 

And get a list of gateway datasources for a specified dataset.

Datasets - Get Gateway Datasources (Power BI Power BI REST APIs) 

Datasets - Get Gateway Datasources In Group (Power BI Power BI REST APIs)

 

Hope this helps.

Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors