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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors