The code is not taking into account the fact that there are different daily corrections costs each year. The join will need to be adjusted to take into account the years.
Date joins have been added to the script such that start date of corrections event falls between the date ranges for each daily cost row in the costs dimension.
The code is not taking into account the fact that there are different daily corrections costs each year. The join will need to be adjusted to take into account the years.