我是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]
它会抛出一个错误:函数中指定的两个集具有不同的维度。我能够一次做[测量]。[客户端计数]或[目标客户],但不能一起做。任何解决方案???感谢
答案 0 :(得分:1)
这是关于MDX的温和介绍的link,您可以在其中查看元组/集合。以下查询应该执行您想要的操作:
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]