Forum Discussion

Sylvain74's avatar
Sylvain74
Helper III
4 years ago
Solved

How to Monitoring PowerBI dataset refresh

Hello,   I need to monitor PowerBI dataset refresh from different customers. Most of them have their reports deployed on app.powerbi.com... I know that I can send automatically an email in case of...
  • Anonymous's avatar
    Anonymous
    4 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.