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

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

Reply
Anonymous
Not applicable

Conditional Dataset Refresh

I have developed several reports that in the next days will be uploaded to PowerBI cloud.

My question is:

How can I refresh the datasets only when the data feeding proccess of the database (E.T.L.) has finished.

 

Is there a way to access a table (through the Schedule Refresh dialog) whereas that info is located and if the value of a certain field is 'Success' then refresh else try again in one hour?

If the above logic is not available, is there any workaround? 

 

Thank you.

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

According to your logic, perhaps integrating the rest API with shell scripts or Python scripts can solve this problem.

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

What connection mode do you use to connect to the data source? If ETL is completed at the same time every day, you can directly set the corresponding schedule refresh time. If the direct query connection is used, the data is always up-to-date, but the last cache is shown. Refresh the cache or trigger the calculation to refresh the dataset.

If you have a modified DateTime (or updated DateTime) in your table, then the process of incremental refresh can monitor that field, and only get rows that their date/time is after the latest date/time in that field in the previous refresh. To enable this process, you can enable the Detect Data Changes, and then choose the modified date or update date from the table.

https://docs.microsoft.com/en-us/power-bi/admin/service-premium-incremental-refresh 

 

Best Regards,
Liang
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

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

According to your logic, perhaps integrating the rest API with shell scripts or Python scripts can solve this problem.

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

What connection mode do you use to connect to the data source? If ETL is completed at the same time every day, you can directly set the corresponding schedule refresh time. If the direct query connection is used, the data is always up-to-date, but the last cache is shown. Refresh the cache or trigger the calculation to refresh the dataset.

If you have a modified DateTime (or updated DateTime) in your table, then the process of incremental refresh can monitor that field, and only get rows that their date/time is after the latest date/time in that field in the previous refresh. To enable this process, you can enable the Detect Data Changes, and then choose the modified date or update date from the table.

https://docs.microsoft.com/en-us/power-bi/admin/service-premium-incremental-refresh 

 

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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