August 26th, 2009 - COGNOiSe.com now sponsored by IBM.
total([Measure] within set periodsToDate ([Cube].[Dates].[Years].[All],currentMember ([Cube].[Dates].[Years])))
HI MFGF, I have worked around for the solution you gave me
total([PP_ACC_RCV_AMNT] within set periodsToDate([YM],currentMember(hierarchy([YM]))))
total([PP_ACC_RCV_AMNT] within set periodsToDate(ancestor(currentMember([YM]),2),currentMember(hierarchy([YM]))))