i have managed to sort this problem by using YTD function and for MAT using SUM function with Lag
sample code: for YTD:
SUM(YTD([Fiscal Time April]),[Measures].[Actual])
sample code MAT:
Sum([Fiscal Time April].currentmember.lag(
iif([Fiscal Time April].CurrentMember.Level.Name = "Month",12,iif([Fiscal Time April].CurrentMember.Level.Name = "Year",1,0))):[Fiscal Time April].currentmember,[Measures].[Actual])