Skip to content

Home · Insights · Data engineering

From scattered spreadsheets to one source of truth: a data engineering guide

When two reports give two different numbers for the same thing, the problem is rarely the report. It is how the data gets there. Here is how to fix it, step by step.

31 October 20264 min readPieSphere team
In short
  • Collect data from each system into one place automatically, instead of copying spreadsheets by hand.
  • Clean it once, define each business number once, and check quality every day.
  • Start with one business question and two or three sources, not a warehouse of everything.
  • Clean, well-labelled data is also what makes AI projects work.

Signs you need data engineering

  • Two reports show different numbers for sales, customers or margin, and meetings start with an argument about which is right.
  • Someone spends days each month copying data from one system into a spreadsheet and fixing it by hand.
  • Reports break when that person is on leave.
  • An AI or analytics project stalled because the data lives in six places and none of them agree.

None of these is a reporting problem. They come from how data moves between your systems, which is the job of data engineering.

What a data pipeline does

A pipeline is an automatic, repeatable route for data from the systems where it is created to the places where it is used. Most modern pipelines follow the same pattern:

  1. Extract and load. Copy data from each source, such as accounting software, your CRM, an app database or shared spreadsheets, into one central store. Keep this raw copy unchanged so you can always go back to it.
  2. Transform. Clean and combine the raw data: fix formats, remove duplicates, match the same customer across systems, and calculate business figures.
  3. Serve. Feed the cleaned tables to dashboards, reports, other systems and AI tools.

Loading first and transforming afterwards, known as ELT, means you keep the original data. When a rule changes, you rerun the transformation instead of collecting everything again.

A simple stack that grows with you

You do not need a large platform to start. Each layer has small and large options:

LayerWhat it doesStart small withGrow into
StorageHolds raw and cleaned dataPostgreSQLBigQuery, Snowflake or Databricks
IngestionCopies data from sourcesScheduled scripts or AirbyteManaged connectors such as Fivetran
TransformationCleans and models data in SQLSQL viewsdbt
SchedulingRuns everything in orderScheduled jobsAirflow or Dagster
ReportingCharts and dashboardsLooker Studio or MetabasePower BI or Looker

Pick tools your team can run. A simple stack that runs every day beats an advanced one that nobody maintains.

Check quality every day

Bad data is worse than no data, because people act on it. Add automatic checks that run after every load and alert someone when they fail:

  • Freshness: did today's data arrive?
  • Volume: is the row count in a normal range, or did half the orders disappear?
  • Completeness: are required fields such as customer ID or invoice date filled in?
  • Uniqueness: are there duplicate invoices or customers?
  • Reconciliation: does the monthly revenue total match the accounting system?

Define each number once

"Active customer", "net revenue" and "on-time delivery" often mean different things to different teams. Agree one written definition for each key figure, calculate it once in the pipeline, and have every dashboard use that same calculation. This one step ends most arguments about whose number is right.

Data for AI

AI projects depend on the same foundations. An assistant that answers from your documents needs clean text, clear titles and dates, and to know which version is current. A model that predicts demand needs consistent history. Two extra points matter for AI:

  • Access control. An assistant should only see data that the person asking is allowed to see.
  • Personal data. India's Digital Personal Data Protection Act, 2023 sets rules for how personal data is collected and used. Keep personal fields only where you need them, mask them in analytics, and record who can access what.

For how assistants use your documents, see RAG explained.

A first project in six weeks

  1. Week 1: choose one business question that matters, such as "which customers are we losing, and why?"
  2. Week 2: connect the two or three sources needed to answer it.
  3. Weeks 3 and 4: clean, combine and define the key figures in the pipeline.
  4. Week 5: build one dashboard the business owner trusts, and add quality checks.
  5. Week 6: document what each table and figure means, and hand over.

Common mistakes

  • Building a large warehouse before knowing which questions it should answer.
  • Copying every table from every system "just in case".
  • Fixing numbers by hand inside dashboards, where the fix is invisible and gets lost.
  • No named owner for each data source, so nobody fixes problems at the source.

Want one set of numbers your whole team trusts?

We can review your data sources and plan a first pipeline around one business question.

Book a free call

Have a project or a problem? Talk to our team.