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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.