Skip to main content

NGO overview

Atlas view

NGO overview

api_v1.ngo_overview

One row per NGO with its six headline counts, precomputed for the per-NGO page.

First 5 rows · api_v1.ngo_overview
snapshot 2026-05-12
orgnrchapter_countnational_countregional_countlocal_countactivity_countkommune_count
86413944239111837235265
871033552000000
938429863000000
938498318000000
940190738000000

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
orgnr9-digit Brreg organisasjonsnummer. Natural key for this view.
chapter_countTotal count of chapters for this NGO across all levels (active + inactive).
national_countCount of chapters at chapter_level = 'national'.
regional_countCount of chapters at chapter_level = 'regional' (e.g. Red Cross distrikt).
local_countCount of chapters at chapter_level = 'local' (the kommune-bound branches).
activity_countCount of distinct activities offered by this NGO (rows in dim_activity for this orgnr).
kommune_countCount of distinct kommuner with at least one active local chapter for this NGO. The "footprint" metric for coverage-gap questions.

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 the configured API base.

https://api-atlas.urbalurba.com/ngo_overview?limit=5

About this view​

One row per NGO with its six headline counts, precomputed for the per-NGO page. One row per NGO in dim_ngo with the six count metrics shown on the per-NGO landing page (atlas-frontend /ngo/[slug]). Equivalent to the getNgoOverview() inline query, but precomputed for all NGOs so PostgREST projects it as a single endpoint consumers filter via ?orgnr=eq.X. Counts include both active and inactive chapters in the level-specific buckets (national/regional/local). kommune_count counts distinct kommune_nr only across *active* local chapters, matching the original query's behaviour.