{
 "metadata": {
  "source": "CT Office of Policy and Management — Municipal Fiscal Indicators, Uniform Chart of Accounts",
  "dataset_id": "e2qt-k238",
  "dataset_name": "Municipal Fiscal Indicators: Uniform Chart of Accounts, 2020-2023",
  "landing_page": "https://data.ct.gov/d/e2qt-k238",
  "source_url": "https://data.ct.gov/resource/e2qt-k238.json",
  "pulled": "2026-08-25",
  "dataset_last_updated": "2026-03-03",
  "recipe": "python Data/fetch_ct_ucoa.py (Python 3, standard library, no API key)",
  "row_count_source": 17632,
  "fiscal_year_note": "OPM year Y = the fiscal year ending June 30 of year Y. 2023 = FY 2022-23.",
  "basis_note": "Audited actual expenditures cross-walked to the state Uniform Chart of Accounts, split into salaries/wages, employee benefits, and all other costs. Same basis as ct_ucoa_town_indicators.json — actuals across funds, not the adopted budget.",
  "structure_note": "`function_totals` holds each town's function-level subtotal rows (the source's '<Function> Total' and 'Total Expenditures' rows), so figures are not double counted. `target_departments` holds every row the source publishes for Union, including department detail.",
  "town_scope_note": "`function_totals` covers Union and its hand-built peer groups only, to keep the browser download small. All 170 entities are in Data/ct_ucoa/mfi_ucoa_by_function_2020-2023.csv.",
  "gap_note": "The source omits some town-years entirely; those years are absent rather than zero. Missing for Union: none.",
  "merge_note": "`function_totals` is not in this file. It is statewide and identical for every town, so it is published once at /data/ct_ucoa_function_totals.json and merged onto this payload at runtime by TownCharts.load(). `target_departments` below is this town's own department detail and appears nowhere else."
 },
 "target": "Union",
 "years": [
  "2020",
  "2021",
  "2022",
  "2023"
 ],
 "fiscal_years": [
  "19-20",
  "20-21",
  "21-22",
  "22-23"
 ],
 "target_departments": {
  "2020": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 198380,
    "benefits": 0,
    "other": 144090,
    "total": 342470
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 198380,
    "benefits": 0,
    "other": 144090,
    "total": 342470
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 0,
    "benefits": 0,
    "other": 59623,
    "total": 59623
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 59623,
    "total": 59623
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 144109,
    "benefits": 0,
    "other": 362873,
    "total": 506982
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 144109,
    "benefits": 0,
    "other": 362873,
    "total": 506982
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 26312,
    "total": 26312
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 26312,
    "total": 26312
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 0,
    "benefits": 0,
    "other": 45006,
    "total": 45006
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 45006,
    "total": 45006
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 939811,
    "benefits": 239978,
    "other": 1078507,
    "total": 2258296
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 939811,
    "benefits": 239978,
    "other": 1078507,
    "total": 2258296
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 187824,
    "total": 187824
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 187824,
    "total": 187824
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 79587,
    "total": 79587
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 79587,
    "total": 79587
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 1282300,
    "benefits": 239978,
    "other": 1983822,
    "total": 3506100
   }
  ],
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 198288,
    "benefits": 0,
    "other": 159138,
    "total": 357426
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 198288,
    "benefits": 0,
    "other": 159138,
    "total": 357426
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 0,
    "benefits": 0,
    "other": 61745,
    "total": 61745
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 61745,
    "total": 61745
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 167340,
    "benefits": 0,
    "other": 368180,
    "total": 535520
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 167340,
    "benefits": 0,
    "other": 368180,
    "total": 535520
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 5897,
    "total": 5897
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 5897,
    "total": 5897
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 25493,
    "benefits": 0,
    "other": 26742,
    "total": 52235
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 25493,
    "benefits": 0,
    "other": 26742,
    "total": 52235
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 782253,
    "benefits": 181983,
    "other": 1115025,
    "total": 2079261
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 782253,
    "benefits": 181983,
    "other": 1115025,
    "total": 2079261
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 2207690,
    "total": 2207690
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 2207690,
    "total": 2207690
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 26172,
    "total": 26172
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 26172,
    "total": 26172
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 38812,
    "total": 38812
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 38812,
    "total": 38812
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 1173374,
    "benefits": 181983,
    "other": 4009401,
    "total": 5364758
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 194381,
    "benefits": 7571,
    "other": 542296,
    "total": 744248
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 194381,
    "benefits": 7571,
    "other": 542296,
    "total": 744248
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 2389,
    "benefits": 0,
    "other": 50300,
    "total": 52689
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 2389,
    "benefits": 0,
    "other": 50000,
    "total": 52389
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 300,
    "total": 300
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 168155,
    "benefits": 36966,
    "other": 299259,
    "total": 504380
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 0,
    "benefits": 0,
    "other": 197959,
    "total": 197959
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 68742,
    "total": 68742
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 168155,
    "benefits": 36966,
    "other": 32558,
    "total": 237679
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 7080,
    "total": 7080
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 7080,
    "total": 7080
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 26859,
    "benefits": 0,
    "other": 21886,
    "total": 48745
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 26859,
    "benefits": 0,
    "other": 19785,
    "total": 46644
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 2101,
    "total": 2101
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 63265,
    "benefits": 790312,
    "other": 1014670,
    "total": 1868247
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 63265,
    "benefits": 790312,
    "other": 1014670,
    "total": 1868247
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 175017,
    "total": 175017
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 175017,
    "total": 175017
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 455049,
    "benefits": 834849,
    "other": 2110508,
    "total": 3400406
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 201402,
    "benefits": 7598,
    "other": 425623,
    "total": 634623
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 201402,
    "benefits": 7598,
    "other": 425623,
    "total": 634623
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 2462,
    "benefits": 0,
    "other": 59779,
    "total": 62241
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 2462,
    "benefits": 0,
    "other": 52000,
    "total": 54462
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 0,
    "benefits": 0,
    "other": 7779,
    "total": 7779
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 183704,
    "benefits": 51291,
    "other": 369709,
    "total": 604704
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 24382,
    "benefits": 0,
    "other": 77300,
    "total": 101682
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 159322,
    "benefits": 51291,
    "other": 292409,
    "total": 503022
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 7277,
    "total": 7277
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 750,
    "total": 750
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 6527,
    "total": 6527
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 27822,
    "benefits": 0,
    "other": 25032,
    "total": 52854
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 27822,
    "benefits": 0,
    "other": 20425,
    "total": 48247
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 0,
    "benefits": 0,
    "other": 4607,
    "total": 4607
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 845606,
    "benefits": 102669,
    "other": 807368,
    "total": 1755643
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 845606,
    "benefits": 102669,
    "other": 807368,
    "total": 1755643
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 216663,
    "total": 216663
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 216663,
    "total": 216663
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 63204,
    "total": 63204
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 63204,
    "total": 63204
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 11339,
    "total": 11339
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 11339,
    "total": 11339
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 1260996,
    "benefits": 161558,
    "other": 1985994,
    "total": 3408548
   }
  ]
 }
}