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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Sylvain74
Helper III
Helper III

How to show refresh history of all datasets within a group?

Hello,

 

I am building a Power BI report to monitor datasets refreshes contained in a workspace. To do so I am using the power bi service rest API and currently I am able to get list of workspaces, and list of all datasets contained in the group (workspace) specify as parameter in the API call.

 

There is another API called "Get Refresh History In Group" which returns the refresh history for the specified dataset from the specified workspace.

In PowerBI Desktop, instead of creating a connection and then dedicated table for each workspace/dataset pair values, I would like instead find a way to list all Refresh History for all datasets contained in the specify workspace.

 

Do you have any idea on how to achieve that?

Hope my explanation is clear enough.

 

Thanks.

1 ACCEPTED SOLUTION
bcdobbs
Community Champion
Community Champion

If you take your existing call to get refresh for a single dataset and wrap it in a function as shown in https://docs.microsoft.com/en-us/powerquery-m/understanding-power-query-m-functions so that you have a function that you can pass the dataset Id to.

 

Then use your existing return that lists id's of datasets add a custom column and use your function to get refreshed for each row.

 

Custom column will initially be a table type column which you can expand in the gui to new rows.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

Thanks, @bcdobbs . Exactly what I said 🙂 Thanks for endorsing it. Cheers!!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

bcdobbs
Community Champion
Community Champion

If you take your existing call to get refresh for a single dataset and wrap it in a function as shown in https://docs.microsoft.com/en-us/powerquery-m/understanding-power-query-m-functions so that you have a function that you can pass the dataset Id to.

 

Then use your existing return that lists id's of datasets add a custom column and use your function to get refreshed for each row.

 

Custom column will initially be a table type column which you can expand in the gui to new rows.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
parry2k
Super User
Super User

@Sylvain74 You have to iterate thru each dataset in the workspace, maybe create a PQ function, and pass dataset id to the function which will return refresh history, and then that will give you combined refresh history of all datasets.

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi Parry2K,

 

That's exactly what I would do if I would working with programming language like C# or VB.Net but here in Power BI, how would you achieve that?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors