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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
v-xiaocliu-msft
Community Support
Community Support

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
v-xiaocliu-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.