Desired behavior
Per fiscal_year and service_area_code, add a pct_of_total field in addition to the amount field. The percent field is the amount divided by the aggregated total for the service_area_code in the fiscal_year of that record. So each object will give the percentage of the service code that is budgeted to the bureau for the given year.
Sample response
[
{
"fiscal_year": "2014-15",
"service_area_code": "CD",
"bureau_code": "AU",
"bureau_name": "Office of the City Auditor",
"amount": 5085506,
"pct_of_total": 1.66
},
{
"fiscal_year": "2014-15",
"service_area_code": "CD",
"bureau_code": "DS",
"bureau_name": "Bureau of Development Services",
"amount": 93304186,
"pct_of_total": 30.54
},
...
]
This issue is a follow-up to the initial implementation of the Bureau endpoint as a solution to Issue #76.
Desired behavior
Per
fiscal_yearandservice_area_code, add apct_of_totalfield in addition to theamountfield. The percent field is theamountdivided by the aggregated total for theservice_area_codein thefiscal_yearof that record. So each object will give the percentage of the service code that is budgeted to the bureau for the given year.Sample response
[
{
"fiscal_year": "2014-15",
"service_area_code": "CD",
"bureau_code": "AU",
"bureau_name": "Office of the City Auditor",
"amount": 5085506,
"pct_of_total": 1.66
},
{
"fiscal_year": "2014-15",
"service_area_code": "CD",
"bureau_code": "DS",
"bureau_name": "Bureau of Development Services",
"amount": 93304186,
"pct_of_total": 30.54
},
...
]
This issue is a follow-up to the initial implementation of the Bureau endpoint as a solution to Issue #76.