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
Michael_Anees
New Member

API server queried too often

Hi all,

I have some queries extracting data throuh an API. The API providers (all of them) complained that the same query runs more than 20 times. 

 

In my queries, this data retrieved from the API server is refernced many times for different aggregation functions, filters, etc. It seems like every time it is referenced, Power Query runs the API query again, which does not make sense.

 

I used Table.Buffer almost everywhere and it still does not solve the issue. I am afraid, I might need to resolve to a basic Python code, which takes away all the utilities we had in Power Query and is such a waste of the development time we put in that project.

 

Any ideas would be appreciated.

2 REPLIES 2
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @Michael_Anees - may I suggest using a Dataflow for the API.  This will obtain the data once to the Dataflow table.  Now you can reference the first Dataflow in a second Dataflow or in your Dataset to perform the different aggregations, functions and filters.  Essentially, this approach is using the Dataflow to replace the Table.Buffer function.

Hi Daryl,

That would be a nice idea. However, the dataflow would need to be able to accept parameters from Power BI to run the API call. Assuming that is easily done, If many users refresh their Power BI simultaneously, they may end up with the wrong datasets because they would be reading data based on other people's parameters. There needs to be another solution.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.