Case study · Industry & services

From the accounting database
to an automated income statement.

The finance function of a rail leasing company wanted to reproduce its monthly reports from its data. We connected its accounting database to a data warehouse, dbt models and Power BI.

Industry & servicesdbtCloud ComposerPower BITerraform

THE CONTEXT

Rental contracts, and a fleet to track.

The company leases rolling stock. Each contract works like a subscription, with a more or less extensive level of maintenance, and may cover several machines.

All management is centralised in Sage 100, originally accounting software, extended to commercial management. The finance function draws its monthly reports from it: the income statement, and the fleet report with the share of machines on lease, their age and their profitability.

The project, which started in 2023, consisted in reproducing these reports from the data itself. It is what a finance function first expects of a data platform: reports that recalculate, with written rules.

WHAT WAS IN THE WAY

Accounting software is not an analytics database.

  • Not everything is historised in software designed for accounting, and its data model holds surprises.
  • One contract, several machines: fleet reports are read machine by machine, while a single contract groups several.
  • Access to obtain: the database was only accessible through the software’s integrator, who opened it up to us.

WHAT WE BUILT

From the software’s database to the finance reports.

01

Ingest the accounting database.

We load the software’s database directly into BigQuery. Going through the integrator’s API had been considered, in case the data model turned out too complicated.

02

Model with dbt.

The dbt models rebuild the contracts, the fleet and the income statement lines. They are run by Cloud Composer, Google Cloud’s managed Airflow service.

03

Deliver in Power BI.

The income statement and the fleet reports are published in Power BI, modelled on the reports the finance function already used.

04

Document.

The income statement, the Power BI reports and the dbt models each have their documentation. The infrastructure is described with Terraform and deployed automatically.

THE STACK

A short chain, fully described in code.

Source
Sage 100
Data warehouse
Transformation
dbt
Orchestration
Cloud ComposerAirflow
Infrastructure
TerraformCloud Build
Reporting

WHAT IT CHANGES

Financial reports that recalculate.

  • The income statement and the fleet reports come out of the accounting database, according to rules written in code.
  • The income statement has its documentation: you can reread how it is calculated.
  • The fleet is read machine by machine: share on lease, age, profitability.
  • A reproducible infrastructure, described in code and deployed with no manual intervention.

WHAT COMES NEXT, WE BUILD TOGETHER

Your next project
starts with a conversation.

An idea, a pain point, a project to kick off? Let’s talk about what would make a difference for your teams.

Let’s talk about your project