Forum Discussion
How to Monitoring PowerBI dataset refresh
- Anonymous4 years ago
Hi Sylvain74,
I am not aware of any such functionality. But I think you could make use of the Power BI APIs, to be specific the refresh APIs which upon invoking, will return a JSON response with details about the success/failure of the last refresh.
There are several Python libraries that you could use to write a simple Python script that calls the API and checks the refresh status of each data set. If you have a computer that is always on, then you could create a scheduled task using Windows task scheduler and schedule the python script to run at a predefined frequency and subsequently process the returned JSON responses and store the processed responses in a database table (for example SQL Server) programmatically. You could further use this table in a Power BI dashboard to monitor the refresh status of all the datasets.
I never had any such requirements and therefore I have never searched for any such functionality.
This is something I could think of and ideally, this approach should work.
Hi Sreenathv,
Thanks for your quick answer! I had a look on Power BI Rest API and according to the documentation we can get status of dataset refresh (Datasets - Get Refresh History - REST API (Power BI Power BI REST APIs) | Microsoft Docs)
On top of that it seems that we can directly source a Power BI report from an API. See this video (How to Call Power BI Rest APIs from Power BI Desktop – Register your Power BI Application – Part One - YouTube)
I am note sure it will work but it's quite interesting.