Skip to content
← All Blogs
Validation

How to validate a new dataset before you start building anything

Quick answer

Before you build, run five checks: fit for the question, join match rate, grain, date coverage and range sanity. Fifteen minutes spent confirming the columns exist, the keys actually match, a row means what you think, every period is present and the totals look believable catches problems before you have built a single chart.

You're three hours into building the "revenue by customer segment" dashboard the marketing lead asked for when the join returns nothing. The orders export has a customer_id like C-1001; the CRM export has an id like 1001. They were never going to match, the segment breakdown can't be built from the data as exported, and now you have to ask for a different export three hours in. Fifteen minutes of checking at the start would have caught it before you'd built a single chart. The point of validating first is simple: never build on data you haven't shown can answer the question.

Cleaning asks "is it tidy"; validation asks "does it fit"

Validation is a different question from cleaning, and it comes first. Cleaning makes the data neat. Validation asks whether the data, neat or not, can support what people want to see. A perfectly clean orders file is still useless for a segment dashboard if it has no way to join to segments. So before you spend time building, check that it fits the purpose: the right columns exist, the keys join, the grain is what you think, the dates cover the period, and the totals are in a believable range. It's the cheapest fifteen minutes in the whole piece of work.

The example: the join that was never going to work

Here's the check that would have saved the three hours. Two tables, and the key you plan to join on:

orders.customer_id     customers.id
C-1001                 1001
C-1002                 1002
C-1003                 1004

Before building anything, measure the match rate: what fraction of orders find a partner in the customers table.

=SUMPRODUCT(--ISNUMBER(MATCH(orders_id, cust_id, 0))) / COUNTA(orders_id)
= 0%

Zero. The C- prefix means not one order matches, so the join fails before it starts. Even after you strip the prefix, the third row (C-1003 against a customers table that jumps to 1004) is an orphan: a real order with no customer record, which will silently vanish from the segment totals. The match rate is the one number that tells you whether the main chart can be built, and it takes one formula to get before you've committed to anything.

Five checks to run before you build

  1. Fit for the question. List what people asked to see, then confirm a column exists for each breakdown and each measure. No segment column means no segment chart; find out now, not in hour three.
  2. Join match rate. For every pair of tables you'll combine, measure the share of keys that match. Below 100%, find out why before you rely on the join.
  3. Grain. Confirm what one row represents: one order, one order line, or one daily snapshot. Getting the grain wrong double-counts everything after it.
  4. Date coverage. Check the earliest and latest date and that every period in between is present. A monthly trend with March missing is a gap to flag before you draw the line, not after.
  5. Range sanity. Look at the top and bottom values of each key measure. A largest order of 2 million or a negative quantity is a question about the data that changes what you build.

Fifteen minutes, five checks, and you either start building with confidence or send one precise message to whoever owns the export ("the customer IDs in orders don't match the CRM; can you export the raw ID?") before you've lost an afternoon.

Validation makes your estimate honest

There's a second payoff beyond the saved hours. When you validate up front, your time estimate stops being a guess, because you've seen the real state of the data before you promised anything. You catch the unmatched keys, the missing month and the wrong grain while they're cheap questions instead of expensive surprises, and you can say "the dashboard will take two days once the join is fixed" and mean it. Building on data you haven't checked feels quick, but you pay the time back later, usually with interest.

When you join two sources, Dotwave shows how many rows match before it creates anything, warns when below half match, and warns when one row could match several and double-count your totals.

Create your free account
More articles

Keep reading

All articles →

Clean your next file in Dotwave

Fixes you approve, a plain-English record of every change, and a dashboard you send by link, PDF or scheduled email.

Create your free account

Free plan, no card required