Hi @samuel rojas ,
Welcome to Microsoft Q&A!
Based on the definition and logic of Accumulate_Balance_MONTH, Accumulate_Balance_YEAR, it seems SSAS returns the correct results.
Please check the members returned for Measures.x, Measures.y and Measures.z testing in sample cube adventure works:
1. With an external filter MDX at month level:
With Member Measures.x AS
MemberToStr(
ParallelPeriod ([Date].[Calendar].[Calendar Year], 1 , [Date].[Calendar].currentmember)
)
Member Measures.y AS
MemberToStr(
Ancestor(
ParallelPeriod ([Date].[Calendar].[Calendar Year] , 1 , [Date].[Calendar].currentmember)
, [Date].[Calendar].[Month])
)
Member Measures.z AS
MemberToStr
(ParallelPeriod([Date].[Calendar].CurrentMember.Level,1,[Date].[Calendar].CurrentMember)
)
select {Measures.x,Measures.y,Measures.z} on 0,
[Date].[Calendar].[Month] on 1
From [Adventure Works]
2. Don't use any filter MDX:
With Member Measures.x AS
MemberToStr(
ParallelPeriod ([Date].[Calendar].[Calendar Year], 1 , [Date].[Calendar].currentmember)
)
Member Measures.y AS
MemberToStr(
Ancestor(
ParallelPeriod ([Date].[Calendar].[Calendar Year] , 1 , [Date].[Calendar].currentmember)
, [Date].[Calendar].[Month])
)
Member Measures.z AS
MemberToStr
(ParallelPeriod([Date].[Calendar].CurrentMember.Level,1,[Date].[Calendar].CurrentMember)
)
select {Measures.x,Measures.y,Measures.z} on 0,
[Date].[Calendar Year].[Calendar Year] on 1
From [Adventure Works]
Best regards,
Carrin
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.