login
Holden Web
What you'll need to know tomorrow

cra

← All examples

EDJAS spec for HM Treasury Country and Regional Analysis, Table B.1 (England).

A COFOG-classified expenditure ledger: ten numbered function headings ("1. General public services" ... "10. Social protection") each heading a run of numbered sub-function line items, some with nested "of which:" detail, and each closed by a "Total <function>" subtotal, ending at "Total Expenditure on Services in England".

The ledger body is rows 5-124; rows 125 onwards are footnotes. Nil cells hold "-", which the template passes through rather than formatting as a number.

The specification

The whole of cra.toml, applied to the unmodified cra.xlsx.

[extract]
title  = "'B.1'!A1"
unit   = "'B.1'!F2"
header = "['B.1'!A4:F4]"
rows   = "['B.1'!A5:F124]"

The JSON it produces

See the extracted JSON — exactly what edjas cra.xlsx cra.toml prints, which is the thing the report below is only one rendering of.

The report it produces

Exactly what edjas-examples --example cra writes. Open it full width.

cra.xlsx — a COFOG-classified expenditure ledger

Country and Regional Analysis 2024, Chapter B tables, HM Treasury. Table B.1 classifies England's identifiable expenditure by COFOG function: ten numbered function headings, each over numbered sub-function line items (some with nested of which: detail) and closed by a Total <function> subtotal, ending at Total Expenditure on Services in England. Nil cells hold -, which the template passes through rather than formatting as a number. Publication: GOV.UK.

Downloaded from GOV.UK.