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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
thod
Helper I
Helper I

Using Power BI REST API to get list of used tables and fields

Hi,

Is it possible to extract metadata information about which sql tables and fields, that are used in published Power BI datasets using the Power BI REST API? I have only found out to get information about the datasources and databases using the GetDatasourcesAsAdmin.

Br.,
Thomas

1 ACCEPTED SOLUTION

4 REPLIES 4
lbendlin
Super User
Super User

which sql tables and fields, that are used

Please define what you mean by "used".

 

Anyway, have a look at how to run DMVs against your datasets.

select * from $SYSTEM.TMSCHEMA_PARTITIONS

select * from $SYSTEM.TMSCHEMA_EXPRESSIONS

 

Also note that the new Scanner API can do the same on a tenant level.

Hi,
So we have a bunch of datasets (pbix files) that are published to the Power BI service. We would like to monitor which databases, tables and fields/columns that each dataset connects to on our SQL server. 

Did you consider my earlier response?  That will give you what you need.

Announcing Scanner API (Admin REST APIs) enhancements to include dataset tables, columns, measures, ...

oh did only check out the DMVs, but the scanner API looks really promising. Thank you very much!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors