Skip to main content

Latest indicator values per kommune

Atlas view

Latest indicator values per kommune

api_v1.indicator_latest_values

One row per (source_id, contents_code, kommune_nr) at each indicator's latest_year, restricted to active kommuner.

First 5 rows · api_v1.indicator_latest_values
snapshot 2026-05-12
source_idcontents_codekommune_nrkommune_namefylke_namevaluestatusyear
fhi-bor-aleneRATE0301OsloOslo33.51286763791962025
fhi-bor-aleneRATE1101EigersundRogaland21.29042612952412025
fhi-bor-aleneRATE1103StavangerRogaland24.96763091043192025
fhi-bor-aleneRATE1106HaugesundRogaland28.42396777442092025
fhi-bor-aleneRATE1108SandnesRogaland20.67492269311782025

Built from

This Atlas view joins data from the following upstream sources. Click through for provenance, methodology, and citation.

Showing direct dbt parents. See full lineage in /lineage/ →

Columns

ColumnDescription
source_idAtlas source identifier, e.g. 'ssb-08764'. Joins back to fact_kommune_indicators.source_id.
contents_codeSource-specific ContentsCode verbatim from upstream (e.g. 'EUskala60', 'Folkemengde'). Combined with source_id and kommune_nr forms the natural key of this view.
kommune_nr4-digit zero-padded kommune code. FK to dim_kommune; only active kommuner are included.
kommune_nameJoined from fact_kommune_indicators (originally from dim_kommune).
fylke_nameJoined from fact_kommune_indicators (originally from dim_fylke). NULL when the kommune's fylke_nr isn't present in dim_fylke (rare — happens for codes like Svalbard 21xx).
valueNumeric value at latest_year. Unit depends on (source_id, contents_code) — see the source's README. NULL when upstream suppressed the cell.
statusSSB suppression marker (e.g. ':' for 'not available'). NULL when value is present.
yearThe latest year for this (source_id, contents_code). Repeats across all kommuner for a given indicator — kept on the row so PostgREST consumers can read it without a separate join.

Sample query

Live PostgREST query that returns the first 5 rows. URL adapts to the current host — local dev shows api-atlas.localhost; the deployed site shows api-atlas.sovereignsky.no.

https://api-atlas.sovereignsky.no/indicator_latest_values?limit=5

About this view

One row per (source_id, contents_code, kommune_nr) at each indicator's latest_year, restricted to active kommuner. Backs the data explorer's per-indicator detail page (atlas-frontend /data/[source_id]/[contents_code]) and is the equivalent of the loadIndicatorValues() inline query. PostgREST consumers filter via ?source_id=eq.X&contents_code=eq.Y. The full table is the cross-product of every indicator with every active kommune that has a row at latest_year, so the unfiltered row count is large (~360 active kommuner × ~70 indicators in v1). Inactive kommuner (kommune_is_active = false) are excluded so the output reflects today's kommune set, not historical codes that upstream still emits.