YTD, QTD, MTD instructions
Define a time dimension table type as time.
define dimension table Create a Hierarchy with the year, month, and day. Name this Hierarchy as
Date-Hierarchy
. Note:You should set the corresponding date attribute for each level. E.g., for year dimension, you should set it as the Year attribute.
![define dimension attribute](images/YTD/set_attribute.en.png)
Create a CM with the following formula:
YTD :
SUM(YTD([DATE_DIM].[Date-Hierarchy].CurrentMember), [Measures].[XXX])
MTD :
SUM(MTD([DATE_DIM].[Date-Hierarchy].CurrentMember), [Measures].[XXX])