nz-social-investment-agency / social_investment_analytical_layer

Standardised tables for doing cross agency work in the IDI - NOTE: Currently being updated due to IDI SAS Grid and Windows 10 migration
GNU General Public License v3.0
12 stars 5 forks source link

Corrections cost logic incorrect #9

Closed ernestynne closed 7 years ago

ernestynne commented 7 years ago

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.

ernestynne commented 7 years ago

fix corrections cost logic in IDI and github

vinaybenny commented 7 years ago

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.