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
coding7
Frequent Visitor

Check if Power BI Dataset tables were refreshed with new data

Hi all,

 

I need to create a Power BI report that shows whether a specific Report/Dataset has been successfully refreshed or not.

 

In my case, it is about whether the tables composing the dataset have new data or not. It is possible that the refresh was successful but no new data was inserted.

 

Is there a way to obtain this information? Essentially, the final report would be a matrix with the names of the reports/datasets and then the status. For example, if it was green, it means new data was inserted; if there was no change in the data (countrows), then it would be red, etc. (similiar with below image)

coding7_0-1708687182177.png

Unfortunately I don't have premium licenses, as that would enable connecting to the XMLA endpoint and executing some DMVs to obtain this information.

Another possibility is to execute countrows in the source, and since I'm using Spark, I would use DESCRIBE HISTORY to obtain the differences in counts between the current and previous versions. However, in this case, the challenge would be the mapping with report names and tables, as I have many tables and reports, and manual mapping would be very time-consuming and bad in terms of management.


It might be possible to obtain the information using the Power BI API as well, but I'm not as familiar with that.

 

Therefore, if anyone has any ideas or suggestions, I would greatly appreciate it.

 

Thanks a lot !

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @coding7 ,

To check the status of a refresh operation, use the GET verb on the refresh object by specifying the . If the operation is in progress, returns , as in the following example response body:requestIdstatusInProgress

vrongtiepmsft_0-1708926033129.png

 

More details: Enhanced refresh with the Power BI REST API - Power BI | Microsoft Learn

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details.

Best Regards
Community Support Team _ Rongtie

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-rongtiep-msft
Community Support
Community Support

Hi @coding7 ,

To check the status of a refresh operation, use the GET verb on the refresh object by specifying the . If the operation is in progress, returns , as in the following example response body:requestIdstatusInProgress

vrongtiepmsft_0-1708926033129.png

 

More details: Enhanced refresh with the Power BI REST API - Power BI | Microsoft Learn

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details.

Best Regards
Community Support Team _ Rongtie

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

 

 

 

 

 

 

 

Greg_Deckler
Super User
Super User

@coding7 What about using scorecards?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hey @Greg_Deckler thanks a lot for your reply|

I actually never used that feature, but do you know of any examples or something like that? I think I'll explore that option because from what I've seen in Microsoft's documentation, it seems intuitive. Thanks again ✌️

jolind1996
Resolver II
Resolver II

It is possible to check if a Power BI dataset has been refreshed with new data by using the Power BI API. You can use the Get Refresh History API to retrieve the refresh history of a dataset, which includes information about the status, start time, and end time of each refresh. You can then use this information to determine if the dataset has been successfully refreshed and if new data has been inserted.

 

Here is an example of how you can use the Get Refresh History API to retrieve the refresh history of a dataset:

GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/refreshes

In this example, {groupId} is the ID of the workspace that contains the dataset, and {datasetId} is the ID of the dataset. You will need to replace these placeholders with the actual IDs of your workspace and dataset.

 

Once you have retrieved the refresh history of the dataset, you can use the information to create a report that shows the status of the refreshes.

 

Best regards,

Johannes

Hi @jolind1996 Thanks a lot, yes it could be a possibility!
Actually, it was one of the options I was considering, creating a notebook and making the API call to get the information. Since I'm not very familiar with the API, this could be a good starting point for studying.

Thank you very much. 👍

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.