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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
JohannSteyn
Frequent Visitor

Limit API call in power query to only call for new records

Hello all,

I connected a list of addresses to the Google Maps API which returns the LAT and LONG coordinates, via power query (nice video here: https://www.youtube.com/watch?v=xBF_ZaGW87k&t=16s).

However, each time I refresh the dataset, all addresses are re-queried. This is bad because 1- it takes long and 2- it costs me money.

So, I want to know if there is any way to limit the power query to only call the API if the address does not already have LAT and LONG coordinates from previous queries.

Here's screenshots of the two queries I use:
1. Query on the table that has the addresses: 

JohannSteyn_0-1669048821502.png

2. Query to Google Maps API: 

JohannSteyn_1-1669048878974.png

 



1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @JohannSteyn ,

 

The first thing that comes to my mind is incremental refresh. Please see if these help:
incremental refresh with an API call in power quer...

Power BI Incremental Refresh with Web API Data Source

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.