MDX 查询问题
我是 MDX 新手。我正在尝试执行以下结果。
Attended Client Count Client Count
--------------------- -----------------
723 1223
我尝试这样做:
WITH MEMBER [Attended Client] AS
[Measures].[Client Count]
SET [Attended Client Set] AS
FILTER
(
[Dim Client Attendance].[Attended].&[Attended],
[Measures].[Client Count] <>0
)
SELECT {[Measures].[Client Count],[Attended Client] } ON COLUMNS
FROM [Client Intervention]
它引发了一个错误:函数中指定的两个集合具有不同的维度。我可以一次执行[措施].[客户计数]或[出席的客户],但不能一起执行。有什么解决办法吗?谢谢
Im new to MDX . I am trying to perform the following result.
Attended Client Count Client Count
--------------------- -----------------
723 1223
And I tried to do this :
WITH MEMBER [Attended Client] AS
[Measures].[Client Count]
SET [Attended Client Set] AS
FILTER
(
[Dim Client Attendance].[Attended].&[Attended],
[Measures].[Client Count] <>0
)
SELECT {[Measures].[Client Count],[Attended Client] } ON COLUMNS
FROM [Client Intervention]
And it throws me an error : Two sets specified in the function have different dimensionality. I'm able to do [Measures].[Client Count] OR [Attended Client] at a time, but not together. Any solution for this??? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一个关于 MDX 的简单介绍的链接,您可以在其中了解寻找元组/集合。以下查询应该执行您想要的操作:
Here is a link about a gentle introduction to MDX where you can have a look for tuples/sets. The following query should do what you want: