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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Super User
Super User

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!:
The Definitive Guide to Power Query (M)

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!:
The Definitive Guide to Power Query (M)

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!:
The Definitive Guide to Power Query (M)

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.