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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors