M 分区使用数据函数导致访问与模型中定义的数据源不同的数据源 [英] An M partition uses a data function which results in access to a data source different from those defined in the model

查看:34
本文介绍了M 分区使用数据函数导致访问与模型中定义的数据源不同的数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用大约 5 个 Web 服务 (API) 调用,但没有一个对我有用...

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

其中 4 个返回此错误:

4 of them are returning this error:

M 分区使用数据函数导致访问数据源与模型中定义的源不同.

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

但你猜怎么着,这些完全相同的 Web 服务在 Power BI 桌面中工作.

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

我在 VS 研究 AAS 表格模型.

I am in VS working on an AAS Tabular model.

请帮忙 - 我认为这只是一个 VS 错误...

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

推荐答案

我们遇到了类似的问题,但从本地 SSAS 中的 SQL Server 获取数据.我们在 M (PowerQuery) 代码中使用了 Sql.Database 函数.我们通过将这个 SQL 数据库声明为数据源,然后在 M 代码中引用这个数据源,设法解决了这个问题.

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.

这篇关于M 分区使用数据函数导致访问与模型中定义的数据源不同的数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆