$begin(calendar,level,date)

$begin(calendar,level,date) returns the start of the period in which the given date falls according to the defined calendar

The following example returns the start of the week in which ${build date} falls according to the Manufacturing calendar:

$begin(Manufacturing,Week,${build date})

The level parameter corresponds to a level in the default hierarchy of the calendar dimension. This function is a generalization of the $week(calendar,date), $month(calendar,date), and $quarter(calendar,date) functions.