Finance closed October with GGR of €4.12 million. The CRM dashboard showed €4.31 million for the same month. The game aggregator invoiced on €4.27 million. Nobody had made an arithmetic error. Finance counted from midnight in Malta, the CRM tool counted in UTC, the aggregator excluded rounds still open at month end, and the CRM figure quietly included bets placed with bonus money. Three correct calculations on three different definitions of GGR, and a Monday meeting spent arguing about which one to put in the board pack.
That meeting is the symptom of a warehouse built dashboard first. This teardown takes apart a typical operator setup, shows where each discrepancy comes from and lays out the order in which to build a warehouse that gives one answer. It is written for operator data leads, CRM analysts and the product people who depend on them.
Three GGR figures in one month: a broken setup from the inside
The setup below is illustrative, a composite of patterns common at mid-sized casino and sportsbook operators. It is worth walking through because almost every piece of it was a sensible decision at the time.
Year one: the operator runs on a white label platform. Reporting comes from the platform's back office. Good enough.
Year two: the operator moves to its own player account management system (PAM) and needs CRM segments. An analyst points a BI tool at a read replica of the production database and builds the first dashboards with SQL that joins accounts, wallet transactions and bonus tables. It works in two weeks.
Year three: sportsbook launches through a separate provider. Its data arrives as nightly CSV files. A second analyst writes scripts that load them into a separate schema. The payments team starts pulling PSP reports into spreadsheets. The CRM vendor gets its own feed, with its own GGR calculation.
By year four the operator has at least four places that compute GGR, each with its own answer to these questions:
- Which time zone defines a day, and does a session crossing midnight belong to one day or two?
- Is a bet placed with bonus funds part of turnover, and is a win paid into a bonus balance part of wins?
- Which exchange rate converts a Canadian dollar bet to euros: the rate at bet time, at day end or at month end?
- What happens to a round left open when a player disconnects, or a sportsbook bet resettled after a scoring correction three days later?
- Do test accounts, internal staff accounts and accounts later closed for fraud stay in history?
No dashboard can settle these. They are modelling decisions, and if the warehouse does not make them once, every report makes them again, differently.
The sources an iGaming warehouse has to reconcile
An operator warehouse pulls from more systems than most e-commerce warehouses, and several of them disagree by design.
The PAM holds accounts, wallet balances and the transaction log. Its wallet is the closest thing an operator has to a ledger, and it should be the backbone of the warehouse. The trap is that many PAMs store a current state (balance, status) that changes in place, so reading the table on Tuesday tells you nothing about Monday.
Game rounds come from the remote game servers of each provider, usually through an aggregator. Round data carries the provider's game ID, stake, win, round status and timestamps, and naming differs per provider. Some send a round as one record, others as a bet event and a separate win event.
Sportsbook data has a lifecycle that casino data lacks. A bet is placed, perhaps cashed out partially, settled, and occasionally resettled when a result changes. A warehouse that stores only the final state cannot explain why yesterday's margin moved.
Payments come from one or more payment service providers. Deposits can be pending, approved, declined, reversed or charged back weeks later. The PSP's settlement reports and the PAM's transaction log rarely match line for line on the first try.
The bonus engine knows which part of a balance is real money, which is bonus money and what wagering remains. Without it you cannot calculate NGR, because bonus cost is one of the deductions from GGR.
CRM, affiliate tracking, KYC and responsible gambling systems complete the picture. Affiliate data decides how much you pay partners; RG events such as limits, time-outs and self-exclusions have to be available to every model that targets players, so that excluded players never enter a campaign segment.
Each source needs an owner on the operator side who can answer "what does this field mean?" within a day. Without that person, the warehouse team guesses, and guesses become definitions.
Build the ledger layer first: grain, time and money
The fix for the three-GGR problem is a ledger layer: one table, or a small set of them, at the finest grain the business uses, with the hard decisions made once and documented.
Start with grain. For casino, the natural grain is one row per round per player, with stake and win split into real and bonus money. For sportsbook, one row per bet leg with a history of state changes. For the wallet, one row per transaction. Everything above that, daily player summaries, game performance and cohort tables, is built from the ledger and can be rebuilt if a definition changes.
Then fix time. Store every timestamp in UTC and add a separate gaming day column computed from the licence's reporting rules. A Malta-licensed operator and a Dutch-licensed one may define the reporting day differently, and the warehouse should be able to report both from the same rows.
Then fix money. Convert to the reporting currency at the rate valid at transaction time, and keep the original currency and amount alongside it. Month-end revaluation belongs in finance's layer, not in the ledger.
Write the core formulas into the transformation code where every report inherits them:
Turnover (real) = sum of real money stakes on settled rounds
GGR = real money stakes minus real money wins, settled rounds only
Bonus cost = bonus funds converted to real money + bonus-funded wins paid as real money
NGR = GGR minus bonus cost minus gaming taxes minus jackpot contributions
Hold % = GGR / real money turnover
Licences and contracts differ on what NGR deducts. Some include payment fees or platform fees, some do not. Pick one warehouse definition, name it explicitly, and let finance build their contractual variants on top with different names. Two metrics both called NGR is how the three-GGR meeting starts again.
Finally, plan for late data. Resettled bets, chargebacks and rounds closed by a provider hours later will arrive after the day is reported. Rebuild a rolling window of the last 7 to 14 days every night, and publish a "day is final" flag so finance knows when a day stops moving.
Choosing the stack without overbuying
The stack question attracts the most debate and matters less than the modelling. Snowflake, Google BigQuery and Databricks all handle operator-scale volumes comfortably, and ClickHouse is a strong choice when the team wants fast queries over very large event tables and can run more of the infrastructure itself. dbt has become the common tool for writing and testing the SQL transformations, whatever warehouse sits underneath.
Ingestion is where the choices differ. Managed connectors such as Fivetran or Airbyte cover common sources quickly. For the PAM's own database, change data capture (Debezium on Kafka Connect is the usual open source route) reads the database log, so you capture every change to a balance or status rather than only the latest value. That is exactly what the year-two setup above lacked.
A short decision tree for the main choices:
- Does your team have fewer than two data engineers? Yes: prefer a fully managed warehouse and managed connectors; skip self-hosted streaming. No: go to 2.
- Does any use case need data in under a minute, such as RG markers, fraud scoring or in-session offers? Yes: build a separate streaming path for those few events and keep the warehouse for everything else. No: hourly or nightly batch is enough.
- Does the PAM store current state that changes in place? Yes: use change data capture on those tables. No: incremental loads by timestamp will do.
- Are you licensed in markets that require data to stay in a region? Yes: choose a warehouse and region that satisfy that before anything else. No: choose on team skills and price.
- Will the platform vendor's own reporting cover finance's regulatory reports? Yes: let finance keep it for those and build the warehouse for CRM, product and analytics first. No: regulatory reporting becomes a first-phase deliverable.
The fourth question is the one teams discover too late. Moving a warehouse between regions after two years of history is a migration project in its own right.
Worked example: sizing rows, storage and compute
The figures below are illustrative, for an operator with 60,000 daily active casino players, and use rounded public list prices that change by region and contract.
Each player plays an average of 350 rounds a day. That is 60,000 x 350 = 21 million round rows a day. In a columnar warehouse, a round row with IDs, amounts, status and timestamps might compress to around 50 bytes, so a day takes about 1.05 GB and a year about 380 GB. At a storage price in the region of 20 to 25 dollars per terabyte per month, a year of round history costs under 10 dollars a month to store. Storage is not the problem.
Compute is. Suppose 40 dashboards each refresh 12 times a day and each refresh scans the full year of rounds. That is 480 scans of 0.38 TB, about 182 TB a day. On a pay-per-scan model priced near 6.25 dollars per tebibyte, that is over 1,000 dollars a day, more than 30,000 a month, for dashboards most people open once a week.
Now build a daily player-by-game summary table from the ledger: 60,000 players playing about 8 distinct games each gives 480,000 rows a day, roughly 175 million rows a year, a few gigabytes. The same 480 dashboard refreshes against that table scan perhaps 2 TB a day in total, around 12 dollars. Partitioning the round table by gaming day and limiting raw-round queries to the last few days removes most of the remaining waste.
The lesson generalises: in iGaming the raw grain is enormous and cheap to keep, and expensive only when reports read it directly. Model the aggregates, and keep the raw rounds for audit, disputes and the occasional deep analysis.
Setup order: twelve weeks from source list to trusted GGR
A realistic build for a mid-sized operator with two or three data people looks like this. The weeks are indicative.
- Weeks 1 to 2: list every source, its owner, its grain and its delivery method. Write the metric definitions (turnover, GGR, bonus cost, NGR, active player, FTD) and get finance, CRM and compliance to sign them.
- Weeks 2 to 3: set up the warehouse, environments for development and production, access roles and a separate restricted schema for personal data.
- Weeks 3 to 5: ingest the PAM wallet and transactions with change data capture, and the aggregator round feed. Land raw data unchanged.
- Weeks 5 to 7: build the ledger layer for casino and wallet with tests for duplicates, negative balances and rounds without a matching wallet transaction.
- Week 7: reconcile ledger GGR against the platform back office and the aggregator invoice for one closed month. Explain every gap above an agreed tolerance, for example 0.5%.
- Weeks 8 to 9: add sportsbook with bet state history, then payments and PSP settlement data.
- Weeks 9 to 10: add bonus data and calculate NGR; add RG events and expose a single player protection status to every downstream model.
- Weeks 10 to 11: build summary tables for players, games and cohorts, and move the most used dashboards onto them.
- Week 12: switch off the old dashboards that read the production replica, publish a data dictionary and set a monthly reconciliation routine.
Step 5 is the gate. Until the warehouse matches the aggregator invoice and the back office within tolerance for a closed month, nobody outside the data team should use it, because the first wrong number shown in a board meeting costs months of trust.
On personal data: keep names, emails, addresses and document data in the restricted schema and join through a pseudonymous player ID. GDPR erasure requests then touch one place, while transaction history stays available for anti-money laundering records, which EU rules generally require operators to keep for five years after the business relationship ends.
Mistakes that make the numbers drift again
Even a clean build drifts. The usual causes:
- Letting a team add "just one quick calculation" of GGR inside a BI tool. Every metric used in more than one report belongs in the transformation layer.
- Dropping test, staff and fraud-closed accounts from the ledger instead of flagging them. Some reports need them, regulators sometimes ask about them, and deletions cannot be undone.
- Treating the aggregator's game list as stable. Providers rename and re-ID games; keep a mapping table with validity dates.
- Rebuilding only yesterday each night, so resettlements and chargebacks never reach the reported days.
- Feeding CRM segments from a table refreshed nightly while RG status changes in real time. An excluded player can be in tonight's campaign.
- Skipping the monthly reconciliation once the first one passes. Platform upgrades change field meanings without notice.
The strongest objection to all of this comes from smaller operators: why build a warehouse at all when the platform vendor offers reporting and a data export? For an operator on one platform, one licence and one product, that is often the right call for the first year or two.
The case for a warehouse appears with the second source that disagrees with the first, usually sportsbook or a second payment provider, and becomes unavoidable once CRM and personalisation models need player-level history the vendor's reports do not expose.
Which leaves a question operators have not settled. As platforms and aggregators start offering their own managed data shares, ready-modelled and updated in near real time, does the operator's own ledger remain the single source of truth, or does it become a reconciliation layer that checks vendors' numbers against each other?