Prep Kit
Guide · Data quality

Document Data Limitations

By , implementation analyst · Updated

Data often still has problems when the work is due. Say what they are, measure what you can, and show how they limit the conclusion.

Practice data

Eight made-up chart songs with a missing genre, unmatched songs and one artist spelled two ways. Run this in an empty practice database.

DROP TABLE IF EXISTS chart_songs;
DROP TABLE IF EXISTS song_info;
CREATE TABLE chart_songs (
  song_id INTEGER, artist_name TEXT, chart_year INTEGER, genre TEXT
);
CREATE TABLE song_info (song_id INTEGER);

INSERT INTO chart_songs VALUES
 (1, 'Copper Lantern Club', 1984, 'pop'),
 (2, 'COPPER LANTERN CLUB', 1986, NULL),
 (3, 'Nia Vale', 1987, 'soul'),
 (4, 'Rosa & Finch', 1989, 'folk'),
 (5, 'Nia Vale', 1994, 'soul'),
 (6, 'Rosa & Finch', 1996, 'folk'),
 (7, 'Glass Harbor', 2001, 'rock'),
 (8, 'Glass Harbor', 2003, 'rock');

INSERT INTO song_info VALUES (1), (3), (4), (5), (7), (8);

Written and tested for SQLite. No database yet? Set one up.

The steps

Ask what the data is forFitness for use

Can one table be good for one job and poor for another? Yes. A customer list may count customers well and still be unfit for mailing them if the addresses are old.

This idea is called fitness for use: data quality depends on what the user needs it for. Wang and Strong built their 1996 study of data quality around it (Beyond Accuracy).

AskExample
What decision does this feed?Which regions to staff
Which fields does it depend on?Region and order date
What is wrong in those fields?Some rows have no region
Can the conclusion still stand?State the size, then decide
Quick check

A list has old addresses. For which job is that the bigger problem?

Write the limitations sectionWhat the reader needs to know

Put a short section in the deliverable that says what the work cannot show, and why. Names vary: Limitations, Scope and assumptions, Caveats.

IncludeMeaning
TradeoffsRules you chose that have a cost
Known problemsFaults you could not fix
BoundariesQuestions the data cannot answer
CoverageWho or what is missing

Examples from my projects: Steam Hidden Gems and Streaming Hidden Gems have a Scope & Assumptions section. Music Hidden Gems lists its limitations.

One from the music project: names joined with "&" are not split, because splitting would break band names such as Hall & Oates. The cost is that a duo member's solo work is not combined with the duo.

Quick check

Your data ends in June. Which line belongs in the section?

Keep a data-quality logThe working record

The section is the summary. Behind it, keep a log of each issue as you find it, so later questions have an answer.

PartFrom the music project
ClueA top list showed "Elvis Presley With The Jordanaires" as its own artist
CheckGroup the matching credit text: 7 different strings
DecisionNormalize joiner words by rule, and preview the results
LessonOne real artist can appear under many names

Add the date, the query you ran and who agreed to the decision. Some regulated work has formal rules for this, so ask what yours requires. For the matching problem itself, see entity resolution.

Quick check

When is the best time to write a log entry?

Measure each limitationOne more query

A number tells the reader how large the problem is. Run these on the practice data.

How many songs matched the second source?

SELECT
  COUNT(*)            AS songs,
  COUNT(i.song_id)    AS matched,
  ROUND(100.0 * COUNT(i.song_id) / COUNT(*), 1) AS match_pct
FROM chart_songs AS c
LEFT JOIN song_info AS i ON i.song_id = c.song_id;
songsmatchedmatch_pct
8675.0

Is the missing genre spread evenly?

SELECT
  CASE WHEN chart_year < 1990 THEN 'before 1990'
       ELSE '1990 on' END                AS period,
  COUNT(*)                               AS songs,
  COUNT(*) - COUNT(genre)                AS missing_genre,
  ROUND(100.0 * (COUNT(*) - COUNT(genre)) / COUNT(*), 1)
                                         AS missing_pct
FROM chart_songs
GROUP BY period
ORDER BY period DESC;
periodsongsmissing_genremissing_pct
before 19904125.0
1990 on400.0

Which artists differ only by capitals?

SELECT
  LOWER(artist_name)           AS artist_key,
  COUNT(DISTINCT artist_name)  AS spellings
FROM chart_songs
GROUP BY LOWER(artist_name)
HAVING COUNT(DISTINCT artist_name) > 1;
artist_keyspellings
copper lantern club2

LOWER() finds capital letter differences only. It does not find typos, and in SQLite the built-in function changes only ASCII letters. See also GROUP BY and HAVING.

Quick check

6 of 8 songs matched. What do you report?

Turn numbers into sentencesSpecific beats vague
VagueSpecific, from the practice data
Some songs may not match.6 of 8 songs (75%) matched the second source.
Older data may be weaker.Genre is missing for 1 of 4 songs before 1990, and 0 of 4 from 1990.
There may be duplicates.1 artist appears under 2 capitalizations.

Then say what it means: "Genre comparisons before 1990 leave out one of four songs." With this few rows, do not claim a wider pattern.

A real example: the music project found 3 artists split by capital letters, 6 roster rows out of 1,570 (data quality log).

Starter template

## Limitations and assumptions

1. Tradeoff: We did [X] instead of [Y] because [reason].
   Cost: [what it affects], measured as [N rows, M%].
2. Known problem: The source cannot [what].
   Effect on the conclusion: [effect].
3. Boundary: Data covers [dates, group, place].
   It does not answer [question].
4. Match rate: [step] matched [N of M records, P%].
   Unmatched records: [what they have in common, or unknown].
Quick check

Which caveat helps a reader most?

Present it with the findingNext to the result it affects
  1. State the finding.
  2. State the limitation that could change it, with its size.
  3. Say what you did about it.
  4. Say what would settle it, such as more data or a check by the data owner.
PartExample
FindingRock songs appear only from 2001 on.
LimitationThe sample has 8 songs, and 1 has no genre.
ActionKept the blank genre as unknown.
NextFill the genre from the source and check the full file.

Listing problems does not excuse weak work. If a limitation could reverse the conclusion, say so, and fix it or narrow the claim. In an interview, describe both what you found and what the data could not tell you. More on finding issues: exploratory data analysis.

Quick check

A limitation could reverse your conclusion. What do you do?

Cheat sheetFour things to write down
ItemWrite
TradeoffRule, reason, cost
Known problemWhat, size, effect
BoundaryDates, group, place
Match rateCount, total, percent
Log entryClue, check, decision, lesson

Write one now

Pick work you have shown someone. Finish this sentence: "This analysis cannot tell you ___."

Practice

Portfolio Projects

Turn a dataset into a project with a limitations section. The SQL Kit covers the queries.

Open Portfolio Projects

Free guide

Thinking Like an Analyst

Defining a metric, exploring data before you trust it, and saying what the data cannot tell you.

Download the free guide

Free download

The Data Analyst OS

Claude Code commands for readouts and handoffs that include what the data cannot support.

Download it

Related guidesQuality, metrics and SQL