Skip to content

Privacy and preparation

Dataset field coverage heatmap: show buyers which fields exist in which years

By SourceX Editorial · Updated

10 sections

Short answer

A supplier should show field availability across years with a field by period coverage heatmap: one row per field, one column per year or quarter, and in each cell the share of that period's records with a usable value, under a printed record count. Mark periods before a field existed as not applicable, count blanks and placeholder defaults as missing, and compute it from the delivered files.

System export

Dataset field coverage

This page covers dataset field coverage heatmap: show buyers which fields exist in which years.Illustrative

Key takeaways

  • One overall fill rate per field hides when a field started, stopped or changed; a field by period grid shows it.
  • Count only values that pass a written validity rule; blanks, placeholders and untouched defaults are not coverage.
  • Give fields that did not yet exist their own neutral cell state, never 0 percent.
  • Compute coverage from the de-identified release files and reconcile denominators to delivered row counts.
  • Use a perceptually uniform color scale with printed percentages, not a red-to-green scale.
  • Explain most gaps with event markers; cut periods that cannot support the declared task; escalate gaps that may reflect deletion or a change in meaning.

How should a supplier show field availability across different years?

Show it as a field by period coverage heatmap: one row per field, one column per period, and in each cell the share of that period's records where the field holds a usable value. Mark separately the cells where the field did not exist yet, so a buyer can tell a field that was introduced in 2021 from one that staff stopped filling in.

A single fill rate per field hides exactly what a buyer needs to know. A resolution code that is 70 percent populated overall (an illustrative figure) might be complete since a 2022 system change and empty before it, which means a model can learn from three years of it, not eight. The heatmap makes that visible in one glance, and the specification below makes it reproducible, so a buyer's data team can recompute every cell from the delivered files and get the same answer.

This page gives the specification, the computation steps, the rendering rules, an illustrative example and the gaps that should change a release. It is written for the person preparing an export, usually a data or operations lead, but the output is meant to be handed to the buyer's acceptance owner as is.

Decide what counts as present before you count anything

Every cell is a ratio, and the numerator depends on a definition of present that has to be written down first. Tools disagree on what missing means. The Great Expectations documentation for its not-null check says that values must be explicitly null or missing to count as exceptions, such as a NULL in PostgreSQL or NaN in pandas, and that empty strings do not count as null unless they have been coerced to a null type. The pandas user guide explains that pandas uses different sentinel values for missing data depending on the data type, such as NaN, NaT and NA.

At a glance

Decide what counts as present before you count anything

So a raw null count overstates coverage in most business exports, where blanks, placeholder text and system defaults stand in for missing values. The specification uses four cell states for each record and field, and only the first counts toward coverage.

Checklist · 4 items

  1. Usable: a value that passes the field's validity rule, for example a resolution code from the current code list or a date inside the record's lifetime.
  2. Placeholder: a value that is present but carries no information, such as an empty string, N/A, TBD, 0 in a duration field, or a picklist default nobody changed.
  3. Null: explicitly missing in the source system or export.
  4. Not applicable: the field could not exist for this record, because it was added to the system later, belongs to a different record type, or was not captured by the source system at the time.

0 of 4 ticked. Tick each item as you go.

Pick the grain: which fields, which periods, which denominator

Rows should be the fields a buyer will actually use, named so they are unique across tables. The Croissant metadata specification recommends prefixing a field's identifier with the identifier of the record set that contains it, giving an example of the form images/date_taken, which avoids ambiguity when two tables share a column name such as status or created_at. Using the same identifiers in the heatmap and in the delivered data dictionary lets a buyer move between them without a lookup table.

Columns should be periods of the record's own business date, usually the creation or event date, not the export date. Years suit an archive of eight or more years; quarters suit a shorter archive or one with a known migration inside a year. Keep the grain the same across every row so a reader can scan down a column and compare fields.

The denominator for each cell is the number of records of that record type created in that period. Print it as a header row above the heatmap. A cell that reads 100 percent over 12 records means something different from one over 120,000, and buyers will look for the counts before they trust the colors.

When an export holds several record types, such as work orders, invoices and customer accounts, draw one heatmap per record type rather than one combined grid. Each type has its own denominator and its own field list, and mixing them makes a field that only invoices carry look sparse across the whole release. Link the grids with the shared keys so a buyer can see, for example, that invoices exist for every year that work orders do.

The field by period coverage heatmap specification

The specification below is the asset: the elements a coverage heatmap needs so that a buyer can read it, recompute it and use it in acceptance. Version it with the dataset release and regenerate it whenever the export scope, the field list or the validity rules change.

The field by period coverage heatmap specification
ElementDefinitionRuleExample
Row keyOne field per row, identified as record set and fieldUse the identifiers that appear in the data dictionarytickets/resolution_code
Column keyOne business period per columnSame grain for every column; label the date field used2019, 2020 ... by tickets/created_at
Denominator rowRecords of that record type in the periodPrinted above the grid; reconciles to the delivered row countRecords per year, summing to the release total
Cell valueUsable records divided by the period denominatorRound to whole percent; show the numerator on hover or in an appendix table64 percent (illustrative)
Not applicable stateField did not exist or was not captured in the periodDistinct neutral color or hatch, never 0 percentGrey cell labelled not in system
Validity rulePer-field test that separates usable from placeholderWritten beside the row; versionedCode in current list; length over 10 characters
Event markersDated changes that affect coverageVertical line or footnote at the period boundaryHelp desk migration, new required field
ThresholdsCoverage bands the release usesState the bands; same color for the same band in every rowBelow 20, 20 to 79, 80 and above (illustrative)
Provenance noteSource system, export date and query versionOne line under the chartExport of a named date, query version 3

Computing the cells from an export without fooling yourself

Compute the heatmap from the same files the buyer will receive, after de-identification and filtering, not from the live system. Coverage measured upstream of redaction can be higher than what arrives, because masking replaces some values with tokens that a validity rule may or may not accept.

  • Freeze the release files and record their row counts per table.
  • Assign each record to a period using the stated business date; count records with a missing or impossible date in a separate row rather than dropping them.
  • For each field, apply the validity rule and label each value usable, placeholder, null or not applicable.
  • Set not applicable from system history, such as the date a custom field was created or a record type was introduced, not from the data itself; an all-empty period is evidence, not proof, that a field did not exist.
  • Divide usable counts by the period denominator and keep the four-state counts in a companion table.
  • Reconcile: the denominators must sum to the delivered row count for that table, and every field in the data dictionary must appear as a row or be listed as excluded.
  • Store the script and its version with the release so the buyer can rerun it.

Rendering rules that keep gaps readable

A heatmap is a grid of colored rectangles, and the common charting tools build one directly. The Vega-Lite documentation for its rect mark says that using rect marks with discrete fields on the x and y channels creates a heatmap, and that rect can also be used with binned fields and discretized temporal fields, which covers both yearly and quarterly columns.

Use a sequential color scale whose lightness changes steadily with coverage. The Matplotlib colormap guide says that for many applications a perceptually uniform colormap, in which equal steps in data are perceived as equal steps in color, is the best choice, and notes that the most common color vision deficiency involves telling red from green, so colormaps with both red and green are worth avoiding. A red-to-green traffic-light scale fails on both counts.

Print the percentage in every cell as well, because colors alone do not survive a black-and-white print or a screenshot pasted into a review document. Keep the not applicable state outside the color scale entirely, as a grey or hatched cell, so nobody reads a field that did not exist as a field nobody filled in.

Coverage defects that a row count and a schema check will not catch

The defects that matter most are structural and invisible to a file-level check: the files parse, the row counts match, and the dataset is still unfit for the declared task in some periods. A coverage heatmap is the cheapest way to find them before the buyer does.

  • A field introduced partway through the archive, such as an outcome label or a root-cause code, which limits training on that label to the later years.
  • A migration boundary where a field was mapped into a different name or a free-text note, so the old period looks empty under the new identifier.
  • History that the source system no longer keeps. Salesforce documentation, for example, says field history data is retained for up to 18 months in the org and up to 24 months through the API unless Field Audit Trail extends it, so edit history fields may exist only for recent periods.
  • A sudden jump to near-complete coverage caused by a new default value rather than by staff filling in the field; the validity rule should catch it as placeholder.
  • An outcome or resolution field that is complete in recent periods only because older open cases were purged.
  • A period whose denominator is tiny because one office or product line was on another system; the percentages look fine and the volume does not.

Worked example: a field service archive from 2018 to 2025 (illustrative)

The values below are invented to show how the heatmap reads; they describe no real company. A field service contractor prepares work orders from two systems: a legacy dispatch tool until mid-2021 and a newer service management platform after it. The buyer wants to train a model that drafts a technician's job summary and suggests the likely failed part.

Read across the rows. The job description is usable throughout. The failed part field did not exist before the platform change and is well filled after it. Technician notes were captured in the legacy tool but often left as placeholders in the first year on the new platform, then recovered once a required field was added. Customer signature is a field the buyer does not need, and the heatmap shows it so the release can say so.

  • Decision for the failed-part task: offer 2022 onward as the training range and the 2021 partial year as a separate, flagged slice.
  • Decision for the summary task: the full range is usable, with 2020 to 2021 notes flagged for lower coverage.
  • Exception: the dip in technician notes is a migration effect, documented with the event marker, not a data loss to repair.
Worked example: a field service archive from 2018 to 2025 (illustrative)
Field2018 to 20192020 to 20212022 to 20232024 to 2025
work_orders/job_description96 percent95 percent97 percent98 percent
work_orders/failed_partnot in systemnot in system (part year 31 percent)88 percent91 percent
work_orders/technician_notes72 percent48 percent79 percent85 percent
work_orders/resolution_code55 percent61 percent90 percent93 percent
work_orders/customer_signaturenot in system12 percent40 percent44 percent

Gaps to explain, gaps to cut, and gaps that end the release

Most gaps only need an explanation: an event marker, a footnote and an adjusted date range for the tasks that depend on the field. Datasheets for Datasets asks dataset creators whether any information is missing from individual instances and, if so, why, and the heatmap plus its footnotes is a direct, auditable answer to that question.

Cut a period from the release when the fields the declared task depends on fall below the release's lowest band there and cannot be recovered from another source. Shipping it adds volume without adding training signal and invites a rejected batch.

Stop and bring in a specialist when a gap may reflect deletion under a retention or legal hold policy, when a field's meaning changed rather than its fill rate, or when coverage differs sharply between customer segments or locations in a way that could bias a model. Those are questions for the data owner, counsel or a statistician, not for the chart.

Using the heatmap in a licensing assessment

Coverage by period is often the first thing an AI buyer asks about after volume, because it determines how many years of each field are actually trainable. As a general guide, buyers look for consistent history of two years or more and tens of thousands of records in one system, though smaller sets can qualify when the work is rare, and each dataset is assessed on its own.

For a company weighing a license, SourceX covers qualification, rights review, contracting, preparation and delivery of a dataset built from selected records. The process opens with a short company assessment and no data upload, so a heatmap computed from counts alone is a useful thing to bring to that first conversation.

Frequently asked questions

What is a field coverage heatmap?

It is a grid with one row per field and one column per time period, where each cell shows the share of that period's records in which the field holds a usable value. It shows at a glance which fields exist in which years. A separate cell state marks periods when a field did not exist.

Should empty strings count as missing?

Yes, for coverage purposes. Many tools treat only explicit nulls as missing, so blanks, placeholder text and untouched defaults slip through as present. Write a validity rule per field and count only values that pass it.

Should coverage be measured before or after de-identification?

After. Buyers receive the de-identified files, and masking can change what a validity rule accepts, so coverage measured upstream can overstate what arrives. Compute the heatmap from the frozen release files and keep the script with them.

What period grain should a supplier use?

Yearly columns suit long archives; quarterly columns suit shorter ones or archives with a mid-year migration. Keep the same grain across all rows and print the record count for each period above the grid.

How is a coverage heatmap different from a data dictionary?

A data dictionary defines each field: its name, type, meaning and allowed values. The heatmap shows when each field was actually populated. They work best together, using the same field identifiers, so a buyer can read a definition and its coverage side by side.

Sources

  • Great Expectations' not-null expectation counts only explicit nulls or missing values as exceptions; empty strings are not null unless coerced to a null type. Source
  • The pandas user guide explains that pandas uses different sentinel values for missing data depending on the data type, such as NaN, NaT and NA. Source
  • The Croissant 1.1 specification recommends prefixing a field's identifier with the identifier of its RecordSet, as in images/date_taken. Source
  • Vega-Lite's rect mark documentation says rect marks with discrete x and y fields create a heatmap and also work with binned and discretized temporal fields. Source
  • Matplotlib's colormap guide recommends perceptually uniform colormaps for many applications and advises avoiding colormaps with both red and green. Source
  • Salesforce retains field history data for up to 18 months in the org and up to 24 months via the API, unless Field Audit Trail is used. Source
  • Datasheets for Datasets asks whether any information is missing from individual instances and, if so, why. Source

See if your company qualifies

A short company assessment. No data uploads are needed.

See if your company qualifies