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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
bebeto
Helper III
Helper III

Calling web service from Power BI Desktop

Hello,

 

I hace some files with location data (latitude, longitude) in them. In my multidimensional solution, when I do the ETL with SSIS I have an script task which call a bing maps web service (https://msdn.microsoft.com/es-es/library/ff701710.aspx) passing latitude and longitude as parameters. The resulting data is added to my cube.

 

I want to do thse same in Power BI, can I do it?

6 REPLIES 6
Greg_Deckler
Community Champion
Community Champion

You might be able to get there with some fancy "M" coding:

https://msdn.microsoft.com/library/Mt253322?ui=en-US&rs=en-US&ad=US

 

What is the purpose/use of the information? Is it to plot the location or is there some other information coming back? I tried your link. With my limited ability to read what I believe is Spanish, it looked like an error "page not found".



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

The purpose is get information about the adress passing a point (latitude, longitude).

 

Here is the link:

 

https://msdn.microsoft.com/es-es/library/ff701710.aspx

Another option might be to use R Script. File | Options and Settings | Options | R Script to enable.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Using R or M I can call a web service passing parameters using data form my data model?

 

Any example?

Haven't really played around with R in that context. M does have a category of functions called "Access data functions":

https://msdn.microsoft.com/en-us/library/mt296615.aspx

 

There are a number of options and the specific answer is going to depend on the type of web service. You can definitely use M to build something like a web service URL using static text plus columns/fields from your data. So, I could imagine a custom column in the query that concatenated the appropriate URL per location and then an M function to grab the data and add it as custom colums to each row.

 

In general, Power BI typically is not used in this dynamic fashion but rather you connect to a data source, import the data and build the model. That being said, a very interesting use case here and would make a good blog article.

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks for your ideas, smoupre!

 

If I get the solution I will post here anyway.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.