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

Power BI Report based on the dataset refresh data

Hello ,

 

I am trying to create a  power BI dashboard where I can show all existing prod dataset refresh status to higher management. For that I am using Microsoft flow to bring the dataset refresh history on timely .

 

Now here I am able to create a Microsoft flow to bring the refresh history data but not able to save the flow job result which in to excel file .

 

Any one created the dataset refresh status dashboard on power BI. If yes kindly advise me.

MS flow.png

1 ACCEPTED SOLUTION

Hi @Anonymous 

In this link,

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getrefreshhistoryingroup

click on the "try it", on the right window, provide the "group id"(workspace id), datatset id, click "run",

Capture10.JPGCapture11.JPG

 

then copy the url (after "Get") in the "Url" box in Power BI (Get daata->Web connector->Advanced)

copy the code (after "Authorization") in the box in Power BI as i lined.

Capture13.JPG

Then select the correct credential in the pop-out window to connect to the data source,

if all above are successful, then in edit queries, click on the "list"->"convert it to table"-"expand"

 

Best Regards
Maggie
Community Support Team _ Maggie Li
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

5 REPLIES 5
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

You can find a link to display the refresh history in the dataset settings. You can also retrieve the refresh history programmatically by using the Power BI REST API. By using a custom solution, you can monitor the refresh history of multiple datasets in a centralized way.

 

https://docs.microsoft.com/en-us/power-bi/refresh-data#configure-scheduled-refresh

 

Best Regards

Maggie

Community Support Team _ Maggie Li

Anonymous
Not applicable

Could you please share the API setup setps . Its really helpfull to me. 

 

 

Hi @Anonymous 

In this link,

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getrefreshhistoryingroup

click on the "try it", on the right window, provide the "group id"(workspace id), datatset id, click "run",

Capture10.JPGCapture11.JPG

 

then copy the url (after "Get") in the "Url" box in Power BI (Get daata->Web connector->Advanced)

copy the code (after "Authorization") in the box in Power BI as i lined.

Capture13.JPG

Then select the correct credential in the pop-out window to connect to the data source,

if all above are successful, then in edit queries, click on the "list"->"convert it to table"-"expand"

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Hi @v-juanli-msft (or anyone else who can help)

The above seems to work fine, but i'm having an issue with the Authorization token.  

I'd like this to work each time the dataset is refreshed, but after setting this up the Authorization token is only valid for 1 hour.  

It expires after an hour and i've seen that you need to update the 

The solution seems to be setting up the initial call to 

https://login.microsoftonline.com/[tenant_id]/oauth2/token/ to get a refresh token.  

 

which is then used.  can you provide any guidance on setting up the refresh token needed here

Anonymous
Not applicable

Thanks for your solution .. its worked for me..

How to manage the relationship if i would like to pull multiple dataset history . 

 

Would like to show Overall success percentage for all the reports. 

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