MDX查询问题

MDX查询问题,mdx,Mdx,我是MDX的新手。我正在尝试执行以下结果 Attended Client Count Client Count --------------------- ----------------- 723 1223 我试着这么做: WITH MEMBER [Attended Client] AS [Measures].[Client Count] SET [Att

我是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]
成员[参与的客户]为
[措施][客户数量]
将[参与的客户端集]设置为
滤器
(
[Dim客户出席人数][出席人数]、[出席人数],
[度量值][客户端计数]0
)
在列上选择{[Measures].[Client Count],[Attended Client]}
来自[客户干预]
这给我带来了一个错误:函数中指定的两个集合具有不同的维度。我可以一次做[测量][客户计数]或[参加客户],但不能一起做。有什么解决办法吗???谢谢

这里是一篇关于MDX的介绍,您可以在这里查看元组/集合。以下查询应执行您想要的操作:

WITH MEMBER [Measures].[Attended Client Client] AS
  Aggregate( FILTER ( 
               [Dim Client Attendance].[Attended].&[Attended], 
               [Measures].[Client)Count] <>0
             ),
             [Measures].[Client Count]
  )

SELECT {[Measures].[Attended Client Client],[Measures].[Client Count] } ON COLUMNS
FROM [Client Intervention]
成员[Measures].[Attended Client]为
聚合(过滤器(
[Dim客户出席人数][出席人数]、[出席人数],
[度量值][客户端)计数]0
),
[措施][客户数量]
)
在列上选择{[Measures].[Attended Client],[Measures].[Client Count]}
来自[客户干预]