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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Refresh every third working day of the month

Hi all, 

 

I have a dataset whith incremental refresh. I would like to schedule a refresh for every third working day of the month. 

 

What are my options here? I can use Power Automate, but the scheduling options there are pretty limited too. 

 

I hope someone in here has some clever way to make this possible. Thanks in advance!

 

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. If you can write a code to detect the third working day of the month, then you can do this. You could write a script on cloud (azure functions or azure runbook) or onpremise (local PC). The script can check the date. If it's the third then just send a request to PowerBi Rest API in order to run the refresh of the dataset. You can do that with PowerShell cmdlets or with any other language code with the rest api.

Request of the API: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset-in-group

The UI of the tool won't let you configure something like this. You can configure it for everyday if you want or specific days of a week, but not from a month with logic.

I hope that make sense


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

Happy to help!

LaDataWeb Blog

View solution in original post

2 REPLIES 2
wikkleyn
Solution Supplier
Solution Supplier

Hi @Anonymous You can make use of the Power BI REST API to refresh your dataset. That gives you the flexibility to refresh the dataset when ever you require and schedule it with an external tool. 

 

https://www.youtube.com/watch?v=lfP6ygindSU 
https://www.fourmoo.com/2018/06/05/using-the-power-bi-api-with-powershell-scripts-refreshing-your-dataset/ 

ibarrau
Super User
Super User

Hi. If you can write a code to detect the third working day of the month, then you can do this. You could write a script on cloud (azure functions or azure runbook) or onpremise (local PC). The script can check the date. If it's the third then just send a request to PowerBi Rest API in order to run the refresh of the dataset. You can do that with PowerShell cmdlets or with any other language code with the rest api.

Request of the API: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset-in-group

The UI of the tool won't let you configure something like this. You can configure it for everyday if you want or specific days of a week, but not from a month with logic.

I hope that make sense


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors