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
dileepkumar
Helper I
Helper I

undefined

Hi i need a help
we have Power BI reports in services 

we are using multiple data source like sharepoint, snowflake ,sql

and we need to create a report like how many reports are using snowflake as a datasource and how many users using it and their names

1 ACCEPTED SOLUTION
v-xiaocliu-msft
Community Support
Community Support

Hi @dileepkumar ,

 

The fastest way is to call the scan restful api of power bi.

https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-get-scan-result

vxiaocliumsft_0-1730706050971.png

You can find the corresponding semantic model through the data source id.

vxiaocliumsft_1-1730706144454.png

And it will return the users who use this semantic model.

vxiaocliumsft_2-1730706201289.png

 

Similarly, you can get the report and the list of users who use the report based on the Dataset ID.

vxiaocliumsft_3-1730706365507.png

 

Best Regards,

Wearsky

View solution in original post

5 REPLIES 5
v-xiaocliu-msft
Community Support
Community Support

Hi @dileepkumar ,

 

The fastest way is to call the scan restful api of power bi.

https://learn.microsoft.com/en-us/rest/api/power-bi/admin/workspace-info-get-scan-result

vxiaocliumsft_0-1730706050971.png

You can find the corresponding semantic model through the data source id.

vxiaocliumsft_1-1730706144454.png

And it will return the users who use this semantic model.

vxiaocliumsft_2-1730706201289.png

 

Similarly, you can get the report and the list of users who use the report based on the Dataset ID.

vxiaocliumsft_3-1730706365507.png

 

Best Regards,

Wearsky

SaiTejaTalasila
Super User
Super User

Hi @dileepkumar ,

 

If you have your pbix files then you can create a python script to convert it to a zipfile and scan through the metadata and get those details to a dataframe and finally you can save it to a CSV file.Even the same method you can make it work for dataflow json files.

 

I hope it will be helpful.

 

Thanks,

Sai Teja 

Hi sai teja  thanks for your responce do we have any sample or any document or video to reffer how to convert into python script 

collinq
Super User
Super User

HI @dileepkumar ,

 

You can use the Power BI REST API here:  Power BI REST APIs for embedded analytics and automation - Power BI REST API | Microsoft Learn

For your request specifically, look at the "Datasets" section.

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Thanks for your responce i will go throuht it 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.