2011-08-10 11 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] 

をそして、それは私にエラーをスロー:機能に指定された2組の異なる次元を持っています。私は[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]