An M partition uses a data function which results in access to a data source different from those defined in the model

安稳与你 提交于 2021-01-29 19:50:22

问题


I have about 5 Web Service (API) calls I am using, and none of them are working for me...

4 of them are returning this error:

An M partition uses a data function which results in access to a data source different from those defined in the model.

But guess what, these very same Web Services work in Power BI desktop.

I am in VS working on an AAS Tabular model.

Please help - I think this is just a VS bug...


回答1:


We had a similar problem but with getting data from an SQL Server in an on-premise SSAS. We used Sql.Database function in M (PowerQuery) code. We managed to solve this problem by declaring this SQL Database as a Data Source and then referencing this Data Source in the M code.



来源:https://stackoverflow.com/questions/53199044/an-m-partition-uses-a-data-function-which-results-in-access-to-a-data-source-dif

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!