MDX记录计数

时间:2017-12-06 08:30:01

标签: ssas mdx

任何人都可以帮我看看这个简单的MDX查询,并告诉我为什么会出现无限递归错误?

with member [Measures].[Count of Records] 
as count(nonempty([ResourceId].[ResourceId].members))

select 
    [Measures].[Count of Records] on 0,
    [ProcessDate].[ProcessDate].Members on 1

from [Model]

我正在尝试为每个日期获取非空的资源ID计数。这是我收到的错误:

Infinite recursion detected. The loop of dependencies is: Count of Records -> Count of Records.

0 个答案:

没有答案