Portfolio example · SF public data · Local government · 2026

Are San Francisco's 311 requests meeting service-level targets?

An end-to-end pipeline on 1.7 million public 311 cases that answers two questions every service agency asks. Are we hitting our targets, and where is the backlog?

  • Data pipeline
  • Data modeling
  • SLA reporting
  • Dashboards
73.7%of cases closed within target
14 hrsmedian time to close
72%of the open backlog is over a year old
1.72Mcases modeled over 24 months

The question

Every service agency gets asked the same two things, by its council, its auditor and the public. Are we meeting our service-level targets? And where are the backlogs? Most can’t answer either without someone spending a week in spreadsheets, and the answer is stale by the time it’s presented.

San Francisco publishes every 311 case: graffiti, street cleaning, blocked sidewalks, tree maintenance and dozens more. That makes it a good stand-in for a real engagement. The data is large and messy, it refreshes nightly, and the stakes are easy to recognize.

What I built

The engagement shape is the one I use with agencies: four layers, each small enough to own after I leave.

  1. Ingestion. A short script pulls a bounded slice from the city’s Socrata API: 1,723,912 cases from Oct 2024 to Sep 2026. It asks for five columns only. Addresses, coordinates and free-text notes never leave the source.
  2. History. Each month lands as its own partition. Closed months are kept; the three most recent are refetched every run, because cases opened last week are still closing. Open cases are snapshotted separately on every run, so backlog is always current.
  3. Model. Timestamps are typed, durations computed, and each request type is joined to a service-level target table. 8,136 records closed before they were opened are dropped and counted, not silently fixed. A case only counts against the target once its outcome is known: it closed, or it’s still open past its deadline.
  4. Dashboard. The model writes a compact KPI file, and the charts on this page render from it at build time. In a client setting the same model feeds Power BI or Tableau, or a custom web report like this one.

Are we meeting targets?

Citywide, 73.7% of cases closed within target, with a median close time of 14 hrs. That headline hides a wide spread. High-volume work like street cleaning mostly hits its target. Public graffiti and tree maintenance miss more often than they hit.

Share of cases closed within target, by request type

Ten highest-volume request types, Oct 2024 to Sep 2026. Median close time and target shown above each bar.

Targets are illustrative planning targets set for this analysis, not official City service levels.

Data table
Share of cases closed within target, by request type
Request typeCasesTargetMedian closeWithin target
Tree Maintenance31,48230 days105 days35.9%
Graffiti Public151,2993 days6.8 days39.2%
Noise30,9423 days41 hrs67.6%
Encampment87,7022 days22 hrs69.5%
Graffiti Private50,47030 days7 days72.4%
Sidewalk and Curb27,32830 days6.6 days74.3%
Blocked Street and Sidewalk31,50924 hrs1.5 hrs75.2%
Parking Enforcement339,5088 hrs2.3 hrs76.4%
General Request102,7017 days24 hrs79.1%
Street and Sidewalk Cleaning682,2212 days7.6 hrs82.9%

Performance has also been steady rather than improving. The monthly rate has stayed between 70% and 78% for two years. Without a trend line, every monthly report reads like news. With one, it’s clear the system is stable and that moving the number takes a change in process, not a push.

Share of cases closed within target, by month opened

All request types, Oct 2024 to Sep 2026.

Data table
Share of cases closed within target, by month opened
MonthCasesWithin targetMedian close
Oct 202471,73073.8%13 hrs
Nov 202459,56473.5%15 hrs
Dec 202465,72573.1%16 hrs
Jan 202572,94972.8%14 hrs
Feb 202562,42272.3%15 hrs
Mar 202565,19376.7%12 hrs
Apr 202565,80477.4%11 hrs
May 202571,44276.7%11 hrs
Jun 202574,52871.1%15 hrs
Jul 202581,03570.4%16 hrs
Aug 202586,17074.2%13 hrs
Sep 202581,87374.3%14 hrs
Oct 202577,30173.9%14 hrs
Nov 202565,09370.6%16 hrs
Dec 202565,41270.9%17 hrs
Jan 202674,32671.3%16 hrs
Feb 202662,80674.1%14 hrs
Mar 202673,92473.3%15 hrs
Apr 202669,59375.7%14 hrs
May 202677,51075.0%15 hrs
Jun 202673,63073.5%14 hrs
Jul 202673,40175.2%14 hrs
Aug 202676,12774.5%13 hrs
Sep 202676,35473.5%13 hrs

Where are the backlogs?

There are 165,727 open cases in the system. The aging view changes what that number means: 118,834 of them, 72%, are more than a year old. 67,428 are filed under request types the city retired in mid-2024, like “Graffiti,” which take no new requests. That’s a records-hygiene problem, not a crew problem. The live queue, cases opened in the last three months, is about 21K.

Open cases by age

Every case still open on the date of the last pipeline run, across all years.

Data table
Open cases by age
AgeOpen cases
Under 1 week4,802
1–4 weeks6,720
1–3 months9,907
3–6 months11,302
6–12 months14,162
1–3 years47,076
Over 3 years71,758

Open cases by request type

Six request types with the most open cases. Gray bars are retired request types that take no new cases.

Data table
Open cases by request type
Request typeOpenOver a year old
Tree Maintenance28,18120,464
Street and Sidewalk Cleaning20,47914,641
Graffiti19,46619,466
Graffiti Public10,1432,253
Sidewalk or Curb8,7798,779
General Request - MTA7,0737,073

Demand is concentrated too. Five neighborhoods generate 37% of all requests, and the Mission alone accounts for 273,457. Two of the busiest areas, Bayview Hunters Point and Bernal Heights, also have the lowest on-target rates among them. That’s where the next round of analysis would go: which request types drive the gap, and whether it’s crews, routing or reporting.

Request volume by neighborhood

Twelve busiest of 41 neighborhoods, Oct 2024 to Sep 2026. On-target rate shown above each bar.

Data table
Request volume by neighborhood
NeighborhoodCasesWithin target
Mission273,45770.1%
South of Market104,25875.2%
Tenderloin97,45380.3%
Bayview Hunters Point90,65566.0%
Hayes Valley74,98278.6%
Nob Hill71,78076.8%
Castro/Upper Market69,19573.9%
Sunset/Parkside68,84173.9%
Financial District/South Beach61,47177.0%
Haight Ashbury59,89974.0%
Outer Richmond56,40881.3%
Bernal Heights48,18565.9%

What an agency gets

  • One definition of “on time.” The target table lives next to the pipeline and is versioned. When a target changes, the history is recalculated, not argued about.
  • Backlog that means something. Separating stale records from live work turns a number nobody trusts into a work list, plus a one-time cleanup.
  • Reporting that runs itself. The pipeline reruns nightly. The monthly report becomes a link.

Source: 311 Cases, City and County of San Francisco, DataSF. Licensed under the Open Data Commons Public Domain Dedication and License (PDDL). Cases opened Oct 2024 to Sep 2026; open backlog as of October 18, 2026. Aggregates only; no addresses or case notes are published.

Similar problem?

Talk about a similar project.

Book a call