If the [Workdate]
hierarchy has Year and Month levels, you can access those by using
[Workdate].CurrentMember.Parent.Parent.Name
(assuming Year is the grand-parent level of Date)
or
Ancestor( [Workdate].CurrentMember, [Workdate].[Year]).Name
If you don't have a Year/Month/Date hierarchy then you'll need to break the date string into bits using [Workdate].CurrentMember.Name
and string functions.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…