2011-08-10 3 views
0

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] 

을 그리고 그것은 나에게 오류 발생 : 함수에 지정된 두 세트의 다른 차원을 가지고 있습니다. 나는 [Measures]. [Client Count] 또는 [Attended Client]를 동시에 할 수는 있지만 함께 할 수는 없습니다. 이것에 대한 모든 솔루션 ??? 감사합니다.

답변

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]