- Type of work
- Warehouse migration, data modeling and validation
- Whose work
- Our founder’s earlier engineering work
- Status
- Contract engagement
- Stack
- Snowflake, Power BI, SQL Server, SQL
In brief
- Problem. Sales, inventory and executive figures came from legacy reports and manual spreadsheets. The rules behind them sat inside report queries and dashboards, and some logic was duplicated.
- Work. Our founder traced those rules, rebuilt them as reusable Snowflake views in raw, staging, curated and reporting layers, and designed the fact and dimension tables that Power BI reads.
- Check. Each migrated report was compared with its source on record counts, date coverage, duplicates and totals before anyone was asked to rely on it.
What was the problem?
The reporting had grown over years. Some reports ran on a legacy database. Others were assembled by hand each period. Logic was duplicated between views, and some rules were hardcoded in the reports themselves.
Moving to Snowflake was a chance to fix that, but only if the numbers people already relied on survived the move. A migration that changes a sales total without an explanation loses the room on the first day.
What did our founder build?
- A layered warehouse. Data lands in a raw layer, is cleaned in staging, and is shaped in curated and reporting layers. Each layer has one job, so a question about a number has one place to start.
- Reusable SQL views. He built views and curated datasets for sales, inventory and executive reporting, and reviewed the view design for naming, duplicated logic and transformations that belonged in a shared layer.
- Fact and dimension models for Power BI. Each fact table has a stated grain. Dimensions are shared between subject areas, bridge tables handle many-to-many relationships, and load tracking shows when each source last arrived.
- Source-to-target mappings. For every reported field, the mapping records the joins, filters, derived fields and transformation rules that produce it.
- Documentation for the next person. Entity relationship diagrams, data-flow notes and validation checklists, written while the work was fresh.
Before any of that, he profiled the source databases through their system catalogs and extracted table definitions, so the plan started from what the sources contained and not from what the old documentation said.
How were the migrated numbers checked?
He built validation and reconciliation checks that compare the source systems, Snowflake and the finished reports. They run from the cheapest check to the most specific.
| Check | What it catches |
|---|---|
| Record counts | Rows dropped or duplicated by a join or a load |
| Date coverage | A missing day or month, or a period that arrived late |
| Nulls and duplicate keys | Fields that failed to map and keys that are not unique |
| Totals | Differences in the sums a manager reads first |
| Metric by metric | A calculation that moved between the database and the report and changed on the way |
When a figure differed, the field mapping showed where to look, from a missing source record to a filter still living inside a report. He worked through metric definitions and mismatches with the business users and Power BI developers who owned them.
How was personal data handled?
The sources included customer and lead records. Access to those datasets was restricted. Executive outputs used aggregated figures. Validation files were checked so that individual records stayed out of anything shared more widely.
What would a similar migration look like for your team?
Start with one report that people argue about. We list its fields, trace each one to a source, rebuild it in the warehouse and run the old and new versions side by side for a closed period. You sign the report off when the totals agree or every difference has a written reason. The next report then reuses the views the first one needed.
Our guide to migrating a data warehouse to Snowflake sets out the full sequence. Data warehouse migration and Snowflake consulting describe how we scope the work.
Frequently asked questions
How do you prove a migrated report matches the old one?
Run both for the same closed period and compare row counts, date range and totals, then the individual measures. Each difference is either fixed or written down with its cause. A report switches over only after the people who use it have seen that comparison.
Should a calculation live in Snowflake or in Power BI?
Put a rule in the warehouse when more than one report needs it or when finance has to audit it. Keep it in Power BI when it depends on what the reader selects, such as a ratio over the chosen period. During a migration, list every calculation and decide once, so the same measure is not defined in two places.
How long does it take to migrate the first report?
It depends on how many sources feed the report and how well its rules are documented. A report with two or three sources is usually a matter of weeks. Most of that time goes on tracing rules and comparing results, not on loading data.
Plan your first report migration
Tell us which report should move first, where its data comes from and how you will know the new version is right. Describe the report you want to migrate, or read how a dependency review found what would break before the move.
This example describes engineering work our founder, Meet Vaghasia, carried out in an earlier role. The organization is not named and project figures are left out. On a call we can walk through the approach in more detail.