0
현재 회원의 자녀 수는 어떻게 계산합니까? 내가 같은 현재 연도에 주어진 달 동안 일 수를 인쇄하고 싶습니다 : 이제MDX의 자녀 수를 계산하십시오.
WITH
MEMBER [Measures].[Label] AS [Dim_Gregorian Calender].[MonthName].CURRENTMEMBER.MEMBER_CAPTION
MEMBER [Measures].[Count] AS
count(STRTOSET("[Dim_Gregorian Calender].[YMD].[Year].&[" + CStr(Format(Now(), "yyyy")) + "].&[2].children"))
SELECT
{
[Measures].[Label]
,[Measures].[Count]
} ON 0
,topcount([Dim_Gregorian Calender].[MonthName].[MonthName], 2) ON 1
FROM [Ret]
그것이 카운트 나 잘못된 값을 보여줍니다 (I 뭔가 & [2] 모든 행을 계산하는 insted 둘 필요가).
두 행만 표시하면됩니다.