analyze_kpi_across_municipalities
Analyze a Key Performance Indicator across Swedish municipalities to calculate statistics (min, max, mean, median) and generate rankings for benchmarking and performance comparisons.
Instructions
Analysera ett KPI över alla kommuner med statistik (min, max, medel, median) och rankning. Visar toppkommuner och bottenkommuner. Perfekt för benchmarking och jämförelser.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kpi_id | Yes | KPI-ID att analysera (t.ex. "N15033") | |
| year | Yes | År att analysera | |
| gender | No | Kön: T=Totalt, M=Män, K=Kvinnor | T |
| municipality_type | No | Kommuntyp: K=Kommun, L=Region, all=alla | K |
| top_n | No | Antal topprankade att visa (standard: 10) | |
| bottom_n | No | Antal bottenprestanda att visa (standard: 10) |