$datename(calendar,level,date)

$datename(calendar,level,date) returns the name of the time dimension member for the defined calendar at the defined level in which the given date falls

The following example returns the name of the week in the Manufacturing calendar in which ${build-date} falls:

$datename(Manufacturing,Week,${build-date})