Forum Discussion
Calling web service from Power BI Desktop
Another option might be to use R Script. File | Options and Settings | Options | R Script to enable.
Using R or M I can call a web service passing parameters using data form my data model?
Any example?
- Greg_Deckler10 years ago
Community Champion
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.
- bebeto10 years ago
Helper III
Thanks for your ideas, smoupre!
If I get the solution I will post here anyway.