Andrey Costa  / projetosprojects
MetodologiaMethodology ↗

ECONOMIA PÚBLICA · DADOS ABERTOSPUBLIC FINANCE · OPEN DATA

Observatório Fiscal BrasileiroBrazilian Fiscal Observatory

Como evoluem as receitas, as despesas e o resultado primário do Governo Central?How are the Central Government's revenue, expenditure and primary balance evolving?

Carregando dados oficiais do Tesouro Nacional…Loading official National Treasury data…

LEITURA DOS DADOSREADING THE DATA

Metodologia e fontesMethodology and sources

O que está sendo medido

Governo Central, metodologia acima da linha do Resultado do Tesouro Nacional (RTN). A receita líquida corresponde à receita total menos as transferências por repartição. O resultado primário é a receita líquida menos a despesa primária: valores positivos indicam superávit; negativos, déficit.

Esse conceito difere do resultado abaixo da linha apurado pelo Banco Central para a verificação da meta fiscal. Estados e municípios não estão consolidados neste painel.

What is being measured

Central Government, above-the-line methodology of the National Treasury Result (RTN). Net revenue is total revenue minus revenue-sharing transfers to states and municipalities. The primary balance is net revenue minus primary expenditure: positive values are a surplus; negative, a deficit.

This concept differs from the below-the-line result computed by the Central Bank to check the fiscal target. States and municipalities are not consolidated in this dashboard.

Preços e comparações

Valores nominais e reais vêm das tabelas 1.1 e 1.1-A da planilha oficial. Os valores reais usam a correção pelo IPCA publicada pelo próprio Tesouro; a base de preços aparece no painel. O acumulado em 12 meses exige uma janela completa e inclui meses anteriores ao início do filtro.

Os dados estão sujeitos a revisões e mudanças metodológicas. A cobertura termina no último mês da planilha coletada, mesmo quando a extração ocorre depois.

Prices and comparisons

Nominal and real values come from tables 1.1 and 1.1-A of the official spreadsheet. Real values use the IPCA adjustment published by the Treasury itself; the price base is shown in the dashboard. The 12-month sum requires a complete window and includes months before the start of the filter.

The data are subject to revisions and methodological changes. Coverage ends at the last month of the collected spreadsheet, even when extraction happens later.

Fonte oficial · Tesouro NacionalOfficial source · National Treasury ↗ · Dados do painel em JSONDashboard data as JSON ↓

Atribuição: Secretaria do Tesouro Nacional. Dados sob licença ODbL. Este painel é uma transformação independente dos dados oficiais.

Attribution: National Treasury Secretariat. Data under the ODbL license. This dashboard is an independent transformation of the official data.

ENGENHARIAENGINEERING

Da fonte ao indicadorFrom source to indicator

Tesouro / XLSX → Python → DuckDB → dbt → testes → JSON → este painelTreasury / XLSX → Python → DuckDB → dbt → tests → JSON → this dashboard

A coleta preserva a planilha original e seu hash SHA-256 para identificar revisões. O dbt organiza as transformações e verifica unicidade, continuidade mensal e conciliação contábil. Testes Python comparam os indicadores com a planilha original. Esta publicação é um retrato validado; a atualização automática ainda está em desenvolvimento.

Collection keeps the original spreadsheet and its SHA-256 hash to identify revisions. dbt organizes the transformations and checks uniqueness, monthly continuity and accounting reconciliation. Python tests compare the indicators with the original spreadsheet. This release is a validated snapshot; automatic updates are still in development.

Código do pipeline:Pipeline code: andreyncosta/brazil-fiscal-data (repositório privado).(private repository).