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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
TJohnsonOK
Helper I
Helper I

Refresh a query with an API only one time a day through automated refresh schedule.

HI.  

I have a power bi report that has a weather API.  I currently have an auto refresh one time every day.  However, when I am working in the desktop and need to publish the dataset due to something changing (not associated with the API), evertything refreshes--including the API.  I am charged every time the API runs.  Is there a way that I can make the queries in Power Query only refresh 1 time a day through the automated refresh, not everytime I happen to need to publish the dataset to the service.  Thank you for your help.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @TJohnsonOK ,

 

If you haven't used flow before, I made a simple sample for you.

vxiaocliumsft_0-1727077084878.png

vxiaocliumsft_1-1727077325193.png

//Create a SharePoint list as the dataset to save the outputs from calling the API

vxiaocliumsft_2-1727077535654.png

vxiaocliumsft_3-1727077596755.png

vxiaocliumsft_4-1727077605182.png

 

Best Regards,

Wearsky

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @TJohnsonOK ,

 

If you haven't used flow before, I made a simple sample for you.

vxiaocliumsft_0-1727077084878.png

vxiaocliumsft_1-1727077325193.png

//Create a SharePoint list as the dataset to save the outputs from calling the API

vxiaocliumsft_2-1727077535654.png

vxiaocliumsft_3-1727077596755.png

vxiaocliumsft_4-1727077605182.png

 

Best Regards,

Wearsky

Thank you so much!  I will check it out!  It may be next week before I am able to do so.  I really appreciate your help!

lbendlin
Super User
Super User

No.  You would need to decouple the API call by (for example) running a Power Automate Flow that is scheduled to run once a day, calls the API, and stores the response as JSON in a OneDrive.  Then point your semantic model to that JSON file for refresh.

Thank you for the quick response. I will have to see if I can implement this. 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.