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?
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.
- 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.
- 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.
- 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.
- 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
| Request type | Cases | Target | Median close | Within target |
|---|---|---|---|---|
| Tree Maintenance | 31,482 | 30 days | 105 days | 35.9% |
| Graffiti Public | 151,299 | 3 days | 6.8 days | 39.2% |
| Noise | 30,942 | 3 days | 41 hrs | 67.6% |
| Encampment | 87,702 | 2 days | 22 hrs | 69.5% |
| Graffiti Private | 50,470 | 30 days | 7 days | 72.4% |
| Sidewalk and Curb | 27,328 | 30 days | 6.6 days | 74.3% |
| Blocked Street and Sidewalk | 31,509 | 24 hrs | 1.5 hrs | 75.2% |
| Parking Enforcement | 339,508 | 8 hrs | 2.3 hrs | 76.4% |
| General Request | 102,701 | 7 days | 24 hrs | 79.1% |
| Street and Sidewalk Cleaning | 682,221 | 2 days | 7.6 hrs | 82.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
| Month | Cases | Within target | Median close |
|---|---|---|---|
| Oct 2024 | 71,730 | 73.8% | 13 hrs |
| Nov 2024 | 59,564 | 73.5% | 15 hrs |
| Dec 2024 | 65,725 | 73.1% | 16 hrs |
| Jan 2025 | 72,949 | 72.8% | 14 hrs |
| Feb 2025 | 62,422 | 72.3% | 15 hrs |
| Mar 2025 | 65,193 | 76.7% | 12 hrs |
| Apr 2025 | 65,804 | 77.4% | 11 hrs |
| May 2025 | 71,442 | 76.7% | 11 hrs |
| Jun 2025 | 74,528 | 71.1% | 15 hrs |
| Jul 2025 | 81,035 | 70.4% | 16 hrs |
| Aug 2025 | 86,170 | 74.2% | 13 hrs |
| Sep 2025 | 81,873 | 74.3% | 14 hrs |
| Oct 2025 | 77,301 | 73.9% | 14 hrs |
| Nov 2025 | 65,093 | 70.6% | 16 hrs |
| Dec 2025 | 65,412 | 70.9% | 17 hrs |
| Jan 2026 | 74,326 | 71.3% | 16 hrs |
| Feb 2026 | 62,806 | 74.1% | 14 hrs |
| Mar 2026 | 73,924 | 73.3% | 15 hrs |
| Apr 2026 | 69,593 | 75.7% | 14 hrs |
| May 2026 | 77,510 | 75.0% | 15 hrs |
| Jun 2026 | 73,630 | 73.5% | 14 hrs |
| Jul 2026 | 73,401 | 75.2% | 14 hrs |
| Aug 2026 | 76,127 | 74.5% | 13 hrs |
| Sep 2026 | 76,354 | 73.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
| Age | Open cases |
|---|---|
| Under 1 week | 4,802 |
| 1–4 weeks | 6,720 |
| 1–3 months | 9,907 |
| 3–6 months | 11,302 |
| 6–12 months | 14,162 |
| 1–3 years | 47,076 |
| Over 3 years | 71,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
| Request type | Open | Over a year old |
|---|---|---|
| Tree Maintenance | 28,181 | 20,464 |
| Street and Sidewalk Cleaning | 20,479 | 14,641 |
| Graffiti | 19,466 | 19,466 |
| Graffiti Public | 10,143 | 2,253 |
| Sidewalk or Curb | 8,779 | 8,779 |
| General Request - MTA | 7,073 | 7,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
| Neighborhood | Cases | Within target |
|---|---|---|
| Mission | 273,457 | 70.1% |
| South of Market | 104,258 | 75.2% |
| Tenderloin | 97,453 | 80.3% |
| Bayview Hunters Point | 90,655 | 66.0% |
| Hayes Valley | 74,982 | 78.6% |
| Nob Hill | 71,780 | 76.8% |
| Castro/Upper Market | 69,195 | 73.9% |
| Sunset/Parkside | 68,841 | 73.9% |
| Financial District/South Beach | 61,471 | 77.0% |
| Haight Ashbury | 59,899 | 74.0% |
| Outer Richmond | 56,408 | 81.3% |
| Bernal Heights | 48,185 | 65.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.