Every table in a warehouse carries an implied promise about what one row represents, whether that is an order line, a customer as they stood at a particular point in time, or an account on a given day. When those definitions are written down and enforced by the load, a new analyst can join two tables and trust the result. When they are left implicit, each query turns into a small investigation, and the same question asked by two people often comes back with two different totals.
Most of the difficult cases involve time. If a customer moves from one region to another in March, someone has to decide whether last year's revenue follows them or stays with the region that earned it. Invoices get corrected after a period has closed, and a reorganized product hierarchy usually leaves the board wanting to see both the old and the new view. A warehouse that overwrites old values cannot answer any of these questions, and the gap tends to go unnoticed until an auditor or a finance director asks for a figure as it was reported at the time.
We design a warehouse by starting from the questions it has to answer and the grain of each fact, and working outward from there. Facts are held at the lowest level that is useful, dimensions are shared across subject areas, and history is kept wherever the business needs it and deliberately left out where it does not. Loading follows the ELT pattern inside the warehouse engine, and every load reconciles its totals with the general ledger or the source system. We also tune the physical design so that the cost of a month-end query is known before anyone runs it.
Challenges we address
The failures we are usually called in to fix
Fact tables with no declared grain
A sales table holds order lines, yet shipping charges are recorded once per order and returns arrive as negative rows from a different system. Summing one column gives the right answer while summing another double counts, because no one ever wrote down what a single row is supposed to represent.
History overwritten by the nightly load
The customer table only holds today's segment, region and account manager, so last year's revenue is reported under this year's structure. The figure for a past quarter shifts every time someone is reassigned, and since the earlier values were overwritten there is no way to rebuild them.
Warehouse totals that do not match the ledger
Revenue in the warehouse comes close to the general ledger without ever matching it, and each month the gap is explained in a spreadsheet that lists timing, manual journals, currency and a filter. Finance keeps its own extract as a result, which means the warehouse is used for everything except the figures that matter most.
A new table for every report
Each request was met with a wide table built for a single dashboard, and there are now hundreds of them with overlapping columns and slightly different filters. Customer appears in forty of those tables without a shared key, which makes it impossible to combine any two subject areas.
Month-end queries that scan everything
Tables were loaded without the partitioning or clustering that their queries need, so a report covering one month reads ten years of rows. On an appliance that makes the report slow, and on a usage-priced cloud warehouse it adds to the bill as well.
Our approach
How the work runs, in order
Start from the business questions
We begin by collecting the questions the warehouse has to answer, along with the processes that produce the underlying data, such as orders, invoices, claims and payments. Each process is a candidate fact table, and we set these against the dimensions they share in a bus matrix, a one-page grid that later serves as the build plan.
Declare grain and conform dimensions
For every fact table we write a single sentence that states what one row represents, and any column that does not fit that statement is left out. Customer, product, date and organization are each built once as conformed dimensions with surrogate keys, which lets facts from different processes be compared on the same terms.
Decide history attribute by attribute
Working with the business owner, we go through each dimension attribute and agree whether to overwrite it, keep every version with effective dates, or hold both the current and the original value. Facts that arrive late and corrections made after period close are given explicit rules, so their handling no longer depends on whatever the load happens to do.
Load and reconcile
Transformations run inside the warehouse as versioned SQL, arranged in layers from staging through to dimensional marts. Each load compares its control totals with the source or the general ledger and records the outcome, and if the difference exceeds the agreed tolerance the publish is blocked and the owner receives an alert.
Tune for query and cost
We study the query history and set partitioning, clustering, materialization and compute sizing to fit the workload that actually runs. Heavy month-end and ad hoc queries are kept apart from the scheduled loads, and your team receives the model documentation along with a guide that shows how to add a new fact or dimension in the same way.
Technical capabilities
What we design, build and operate
Dimensional modeling
We build star schemas with a declared grain, conformed dimensions and surrogate keys, together with a bus matrix that shows how the subject areas fit together.
Slowly changing dimensions
Type 1, type 2 or hybrid handling is chosen for each attribute, with effective dating, current-row flags and point-in-time joins that analysts can use without needing a manual.
Fact table design
We design transaction, periodic snapshot and accumulating snapshot facts, each matched to the process it measures, and mark measures as additive or non-additive so that totals are only calculated where adding the values makes sense.
Finance-grade reconciliation
Every load checks control totals against the general ledger and the subledgers, closed periods are locked, and restatements are stored as adjustments so that the figure as originally reported can still be retrieved.
ELT inside the warehouse
Layered and versioned SQL models that use incremental and merge strategies, written so that reloading any period produces the same result as the original load did.
Bitemporal history
Where an audit requires it, each record holds both the date on which a fact was true and the date the warehouse learned about it, which lets you reproduce any past report exactly.
Performance and cost tuning
We set partitioning, clustering or sort keys, materialized aggregates, workload isolation and compute sizing from the query logs, and attribute a cost to each workload.
Hierarchies and reference data
We model organization, product and account hierarchies that change over time, including ragged and multi-parent structures, in a way that allows both the old and the new rollup to be reported.
Where it applies
Business applications
Management and statutory reporting
Figures for the board, the audit committee and regulators, which have to tie to the ledger and remain reproducible for months after they were published.
Sales and margin analysis
Revenue, discount and cost held at order-line grain across products, customers and channels, so that years stay comparable even when the organization was restructured in between.
Customer history across systems
A single customer dimension fed by the CRM, billing and support systems, which records each change in segment, region and ownership as a new version and keeps the old one.
Inventory and supply positions
Daily snapshot facts for stock, open orders and backlog, for questions about the level on a particular date that cannot be answered by adding up movements.
A foundation for the semantic layer
Clean facts and conformed dimensions on which metric definitions and BI tools such as Power BI, Looker and similar tools can be built without workarounds embedded in them.
Consolidation after an acquisition
Merging two charts of accounts and two customer lists into shared dimensions, with documented and dated mappings between the old codes and the new ones.
In practice
Two situations this service is built for, and what we would do in each.
Retail and consumer goods
A retailer whose last year changes with every reorganization
The situation
A retailer moves stores between regions twice a year and shifts products between categories every season, but its warehouse keeps only the current assignment. Regional managers therefore find that last year's sales for their region have changed since the previous review, and before every trading meeting someone rebuilds the like-for-like comparisons by hand in spreadsheets.
What we would build
We would rebuild the store and product dimensions to keep every version of region and category with effective dates, and key the sales fact to whichever version was in force on the date of the sale. Because the current assignment is carried as a separate attribute, both views come from one model. The spreadsheet logic would be retired once its figures had reconciled with the warehouse for three past seasons.
What it is designed to change
Reports could show sales as the business was organized at the time or as it is organized today, and each view would stay stable between meetings. Success would be judged on whether a closed period's figures stay unchanged across successive runs and on the hours spent preparing comparisons by hand.
Financial services
A lender whose warehouse and ledger disagree at month end
The situation
A lender's finance team reports interest income from the general ledger, while the risk and product teams work from the warehouse, and the two figures differ every month. Backdated loan corrections, manual journals and fee reversals reach the ledger without reaching the loan-level tables, so three days of every close are spent explaining the difference.
What we would build
We would model loan transactions at the grain of a single posting, bring manual journals in as a fact of their own, and tag each row with its accounting period as well as its transaction date. A reconciliation model would then compare warehouse totals with ledger balances by account and period on every load, and corrections to closed periods would be loaded as dated adjustments that never overwrite earlier rows.
What it is designed to change
Finance, risk and product would read the same income figure, and whatever difference remained would be listed by account along with its cause. The work would be judged by the unexplained reconciliation difference at close and by the time it takes to reach an agreed figure after the period ends.
Technologies
We work in your stack and recommend on fit. We resell nothing.
Cloud warehouses
Snowflake · Google BigQuery · Amazon Redshift · Microsoft Fabric · Azure Synapse Analytics · Databricks SQL
Relational and on-premises platforms
SQL Server · Oracle Database · PostgreSQL · Teradata
dbt tests · Great Expectations · Soda · reconciliation models in SQL
Business outcomes
What changes for the organization
Finance uses the warehouse for close
Because totals tie to the ledger by account and period on every load, the separate finance extract and the monthly spreadsheet that explained the gap can both be retired.
Past figures stay as reported
A closed quarter returns the same numbers a year later as it did on the day it was published, and any restatement is clearly recorded as a restatement.
New questions answered by joining tables
Since facts share their dimensions, combining sales with inventory or claims with payments becomes a query an analyst can write, where before it would have been a modeling project waiting in a queue.
Query cost that is known in advance
Month-end and ad hoc workloads run on their own compute with a cost recorded for each, and a report covering one month reads only that month's data.
What you hold at the end
A bus matrix of business processes and shared dimensions
Dimensional models, each fact table with a written grain statement
A history policy for every dimension attribute
Versioned ELT code in your repository
Reconciliation models with tolerances and alerts
A physical design tuned from your query history
A guide for adding new facts and dimensions
Questions buyers ask
Yes, although the reasons have changed. Star schemas used to be necessary to make queries fast on limited hardware, and current cloud engines are fast enough to join many tables or scan very wide ones. What an engine cannot do is tell an analyst what a row means or prevent a measure from being counted twice. Declared grain, conformed dimensions and tracked history address that problem of meaning, which is still there even though storage has become cheap.
The answer depends mostly on how many sources you have and how often they change. Dimensional models make the best layer for people and BI tools to query, while Data Vault justifies its extra tables as an integration layer when many source systems feed the same entities and a full audit history is required. Wide tables are useful as a final derived layer for a particular tool. Many warehouses combine two of the three, but we would not put Data Vault underneath a warehouse that has four stable sources.
We recommend deciding attribute by attribute, together with the person who owns the reports. Versions should be kept wherever a past figure has to be reported as it was, which usually covers region, segment, account manager, product category and price list, while a value that was wrong, such as a misspelled name, can be overwritten. Tracking everything by default makes dimensions large and queries harder to write, whereas tracking nothing cannot be reversed later, since the source rarely keeps the old value for you.
In practice it comes down to four properties. The warehouse total for an account and period equals the ledger or the difference is itemized, and a closed period changes only when someone posts a dated adjustment. Any published figure can be reproduced later from stored data, and there is a record of who changed each transformation and when. These are the properties auditors ask about, and none of them needs unusual technology, only a decision to treat them as requirements from the beginning.
In many cases it is partly a modeling problem. Usage-priced warehouses charge for the data scanned or the compute time used, so a table without partitioning, a model rebuilt in full every hour or a dashboard that recomputes a large aggregate on each refresh will all show up on the invoice. We read the query history, rank the workloads by cost and fix the few expensive ones through incremental builds, pruning, pre-aggregated tables and right-sized compute. Some of the growth reflects real demand, and when it does we will tell you.