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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Extract power bi datasets refresh history

Hi everyone, 

I am would like to extract automatically this table (see picture below) containing all the refresh status details of my datasets, in order to set up a monitoring system. Is there any powershell script that I can use in order to achieve this ? Sans titre.png

 

Thank you very much !

2 ACCEPTED SOLUTIONS
GilbertQ
Super User
Super User

Hi @Anonymous 

 

You can do this using the Power BI REST APIs, from your image you are using Power BI Premium and this is the API you can use

 

Admin - Get Refreshables For Capacity (Power BI Power BI REST APIs) | Microsoft Docs





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

Proud to be a Super User!







Power BI Blog

View solution in original post

v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to my research, you can follow this blog to extract the refresh metrics for your entire Power BI workspace using the PowerShell script:

https://data-marc.com/2021/01/07/extract-refresh-metrics-for-your-entire-power-bi-workspace/

 

You can copy the script from this link:

https://github.com/marclelijveld/Power-BI-Automation/blob/master/PowerBI_RefreshHistoryPerWorkspace.ps1

 

You have to enter the workspace ID into the script, to get the workspace ID, the easiest way is to copy this part of the URL when you enter a workspace:

v-robertq-msft_0-1619084462292.png

 

How to get WorkspaceId using Power BI Cmdlets for PowerShell

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to my research, you can follow this blog to extract the refresh metrics for your entire Power BI workspace using the PowerShell script:

https://data-marc.com/2021/01/07/extract-refresh-metrics-for-your-entire-power-bi-workspace/

 

You can copy the script from this link:

https://github.com/marclelijveld/Power-BI-Automation/blob/master/PowerBI_RefreshHistoryPerWorkspace.ps1

 

You have to enter the workspace ID into the script, to get the workspace ID, the easiest way is to copy this part of the URL when you enter a workspace:

v-robertq-msft_0-1619084462292.png

 

How to get WorkspaceId using Power BI Cmdlets for PowerShell

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GilbertQ
Super User
Super User

Hi @Anonymous 

 

You can do this using the Power BI REST APIs, from your image you are using Power BI Premium and this is the API you can use

 

Admin - Get Refreshables For Capacity (Power BI Power BI REST APIs) | Microsoft Docs





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

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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