在处理 table 时查找哪个函数导致错误消息

Finding which function cause the error message while processing a table

通过在我的多维数据集中处理(处理完整,处理数据)一个 table(每个 table),我收到以下错误:

Failed to save modifications to the server. Error returned: 'A function 'MAX' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
A function 'MAX' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
The credentials provided for the SQL source are invalid. (Source at XXXX;XXXX.). The exception was raised by the IDbCommand interface.

如何找到导致此错误的函数?

查询 $SYSTEM.MDSCHEMA_MEASURES DMV,它列出了表格模型中的度量。 Expression 列包含每个度量的定义,您可以使用它来查找具有错误消息中指定的 MAX 函数的任何度量。 SSAS DMV 可以从 SSMS 中的 MDX 查询编辑器 window 或其他工具(如 Dax Studio)中查询。 Dax Studio 包含一个 DMV 列表,如果您还没有使用它,我建议您查看一下。您可以在此处找到有关此 here 的更多信息。您还可以执行您的 在 Dax Studio 中测量,它可以帮助 调试它。您还需要验证您使用的帐户是否对您的表格模型使用的 SQL 服务器对象具有适当的权限。