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
stribor45
Post Prodigy
Post Prodigy

Power Query - Advanced editor

In my power query editor, I have a query that calls API, and as I hit "done" I can see the dots at the top, which tells me the query is running. After a minute or so I can see my data, At this point, I can hit "close and apply" to get to the report side of the Power BI. Does this "close and apply" call the API again?

6 REPLIES 6
Omid_Motamedise
Super User
Super User

When you hit "close and apply" in Power BI after editing a query that calls an API, Power BI will re-run the query, which means the API will be called again. This is because Power BI needs to ensure that the data being loaded into the data model is up-to-date based on the current query logic. If you want to avoid making multiple API calls, consider caching the data or storing it locally after the initial call, depending on your use case and data freshness requirements.

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

@Omid_Motamedise how do you store it locally or cache it? 

stribor45
Post Prodigy
Post Prodigy

I have multiple queries that are all in "waiting for other queries" when I click "close and apply". I am trying to isolate the problem and want to disable all of them but one but when I uncheck "Include in report refresh" and "enable load" they all keep trying to load and I can't proceed with troubleshooting since I have no idea which query is hanging

Anonymous
Not applicable

Hi @stribor45 

You can put the resource of the api to other data source first(such as excel) then connect the excel in power bi so thay you can reduce the times of calling api.

 

Best Regards!

Yolo Zhu

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

Anonymous
Not applicable

Yes.

 

What you see inside the PQ editor is a preview only, but to generate the preview the query must be called to get the data.

 

After you close the PQ editor, BI controls when and how often the query is called.

 

Andreas.

So when you close the editor api endpoint is called again? I am trying to minimize how many times I call Api

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors