Reporting Guide

07. Designing good reports

This chapter is not about buttons. It is about the craft: what makes a report useful, and how to avoid the mistakes that make numbers wrong or misleading. The ideas apply to any reporting tool. It takes about 20 minutes to read.


1. What a report is

A report is a message from data to a person who has to decide or do something.

That sentence has three parts, and every failed report fails on one of them:

Part The question When it fails
Data Is it correct, complete and current? The numbers are wrong, so everything built on them is wrong
Message Does it say one clear thing? A 40-column dump that makes the reader do the analysis
Person who must act Who reads it, and what will they do? Nobody reads it, or it answers a question nobody asked

Before you build anything, ask:

Who will read this, and what will they do differently because of it?

If the answer is "nothing", do not build it. If the answer is "they'll file it", build the simplest thing that satisfies the filing rule.


2. The ideas under every report

Grain: what does one row mean?

Grain is the answer to "what does one row mean?" Is it one row per invoice? Per invoice line? Per customer per month? Decide this first.

Most wrong numbers come from mixing grains: adding a customer-level figure to an invoice-level one, or joining tables at the wrong level so totals double.

In DataPublisher: the grain of a summary table is its Group by columns. ByMonth has one row per customer per month.

Dimensions and measures

What it is Examples
Dimension Something you group, filter or label by Customer, region, product, date, status
Measure A number you calculate Amount, quantity, count, duration

"Total of Amount for each Customer by month" is one measure and two dimensions. Every summary is that sentence.

Why not all numbers add

Kind of measure Can you add it? Example
Additive Across everything Sales amount, units, a count of invoices
Semi-additive Across some dimensions, but not time A bank balance: add across accounts today, but never across days
Non-additive Never. Recompute from the parts Ratios, percentages, averages

The most common reporting bug in the world is averaging an average. Here is an example:

Customer Invoices Average invoice Total
A 2 100 200
B 8 50 400

The average of the two averages is (100 + 50) / 2 = 75. The true average invoice is 600 / 10 = 60. The difference is the weight: customer B has four times as many invoices.

Keep the totals and the counts, and divide at the end. The same applies to percentages (add the numerators and denominators, not the percents) and to rates.

In DataPublisher: this is why a cross-tab's Total row and column is greyed out for averages, and why you calculate a share as Total / GrandTotal instead of averaging percentages.

Levels

Dates roll up (day, month, quarter, year). Places roll up (city, region, country). A good report lets a number be seen at more than one level, and makes sure the levels agree: the months must add to the year.

Filters and parameters

A filter removes rows. A parameter is a filter whose value is chosen when the report runs ("this month", "this region"). Parameters let one report serve many readers. Their risk is quiet: the reader forgets which values were chosen.

A good report prints its own parameters, for example "Period: 2026-01-01 to 2026-03-31, Region: East", so a copy on someone's desk still says what it covers. In DataPublisher, every parameter is also a field, such as <<From>>, so this is easy. A date range prints as <<BillingPeriod>> and a list of several values prints as East, West. A header is a good place for it, because it repeats on every page.

Context turns a figure into a finding

Technique Answers Care needed
Running total "How much so far?" Say what it restarts on (year, customer, account)
Rank or top N "Who are the biggest?" Show the rest as "Other" so the total still ties. A rank is only meaningful inside one group, so say which
Median or percentile "What is a typical or a high-end value?" Say which one you printed. One huge invoice moves an average a lot and a median hardly at all. Percentile methods differ between tools, so check before comparing
Period comparison "Better or worse than last time?" Compare like with like: same days, same scope
Share of total "How big a piece is it?" Show the base: percent of what?
Variance "How far from plan?" Define the sign: is over-budget positive or negative?

A number alone is not information. "$3,583" says nothing. "$3,583, up 12% on last quarter and 33% of all customers" says something.


3. Principles of a good report

3.1 Start with the question, not the data

Ask: what decision, by whom, how often, and what happens if they get it wrong? The answers set the grain, the level of detail, how often it runs, and how much error you can tolerate.

3.2 One report, one job

A report that tries to serve the customer, the manager and the auditor serves none of them. Make three from the same data. This is not duplicated effort if the logic is shared and only the presentation differs.

3.3 It must reconcile (the tie-out)

The parts must add up to the whole, and the whole must match a source the reader trusts. This is the single most important property of a report, and the one most often skipped. Here is an example from the tutorial data:

Customer Total
Acme Co 3,583.34
Birch & Sons 1,629.35
Cedar Ridge Garage 3,139.64
Dunn's Auto 1,503.35
Eastside Tire 857.45
Sum of the parts 10,713.13
Grand total, calculated separately 10,713.13

When the two differ, one of them is wrong, and you have found out before your customer did. Make tie-outs part of building a report, not an afterthought.

In DataPublisher: add a GrandTotal next to your per-record totals, and compare them against your own data. Remember that "Keep only groups where" and "Keep only the top" make a table add up to less than GrandTotal on purpose, and the screen tells you so.

3.4 One definition, one place

"Revenue", "active customer", "late" and "headcount" each need a definition written in a sentence. If two reports define them differently, you have two truths, and meetings become arguments about whose number is right. Write the definition down, give it an owner, and reuse it.

In DataPublisher: put the definition in one recipe and reuse that recipe across templates.

3.5 Be traceable

A reader should be able to ask "where does this number come from?" and get an answer: which table, which filter, which date, which version of the rules. In small business this is simply, "Can you show me the invoices behind that total?"

In DataPublisher: clickable links from a summary to its detail (lesson 8c) are traceability built into the document.

3.6 Show less

Habit Why
Round to the precision that matters $3,583.34 on a statement, $3.6k on a board slide
Remove columns nobody uses Every column dilutes the important one
Put the exceptions first A report of 500 lines where 3 matter should lead with the 3
Use white space Density is not information

Edward Tufte's rule of thumb is to maximize the share of ink that carries data, and cut decoration that carries none.

3.7 Choose the form to fit the question

You want the reader to... Use Avoid
Look up an exact value A table with right-aligned numbers A chart
Compare a few amounts A bar chart with a zero baseline A pie with many slices
See change over time A line chart A bar per day for two years
See parts of a whole (few parts) A donut or stacked bar, with labels Eight or more slices
See two dimensions at once A cross-tab (rows by columns) Two separate tables to compare by eye
Spot an outlier Sorted bars, or highlighting Alphabetical order
Find a record A list with links A summary
Put a name, address or sign on a physical thing A label sheet, with a QR code if people should scan it A full-page document cut up by hand

3.8 Do not mislead, even by accident

Trap What happens Fix
Truncated axis on a bar chart A 2% difference looks like a collapse Start bars at zero
Dual axes Two lines appear to move together because the axes were tuned Avoid them, or label both clearly
Averaging averages See section 2 Keep totals and counts
A percentage with no base "Up 50%" from 2 to 3 Show the counts
Color alone carrying meaning Unreadable for color-blind readers and in black-and-white print Add labels, shapes or text
Too many slices Nobody can compare 14 wedges Top N plus "Other"
Cherry-picked period The trend vanishes if you widen the window State the window and show enough history
Hidden filters The reader thinks it covers everyone, but it is East only Print the parameters

3.9 Make it accessible

Use alt text for charts, enough contrast, real table headers, and numbers that survive a screen reader or a black-and-white printer. DataPublisher sets chart alt text from the title and values, and uses a color-blind-safe palette by default.

3.10 Labels and QR codes

A label or sign is read at a glance, from a distance, and often once. A QR code on it is a door to more detail, not the detail itself.

Rule Why
Print the human-readable text as well (the address, the invoice number) A scanner fails, a phone has no signal, a person just wants to read it
Say what the code does ("Scan to request a viewing") Nobody scans a mystery square
Keep it big enough, with a white border, and test the printed copy Size and contrast decide whether it scans. Scan a real print, from the distance a reader will use
Encode a link, not secrets Anyone who sees the sign can scan it. Put an address or an id in the code, never a name with an account number
Encode spaces and & in links {Address:url} writes 12 Mill St & Row as 12%20Mill%20St%20%26%20Row, so the link does not break
One code per label or record, with a clear owner A barcode is made for each record or each label, not for each line of a table
Measure the real sheet and test on plain paper A label that is 2 mm off looks worse than a plain page. DataPublisher does not ship label-maker sizes, so the measurements are yours to enter

4. Documents versus dashboards

A document is right when... A dashboard is right when...
The reader needs a record they can keep, sign, file or send The reader needs to explore, filter and refresh
Each reader needs their own numbers (a statement, an invoice summary, a progress report) Everyone looks at the same live view
It must look the same on paper, in a PDF and in an e-mail It is only viewed on screen
The numbers must be frozen at a point in time The numbers must be live

DataPublisher makes documents. This is its strength for "the report of one": a statement, a scorecard or a summary made for each customer from one shared definition.


5. How reports fail

Failure What it looks like Prevention
Wrong grain Totals doubled after a join Declare the grain; check totals against a known figure
Dirty data Blanks, text in number columns, $ signs Read the yellow "Worth a look" box (lesson 11)
No tie-out Nobody knows if it is right Section 3.3
Two definitions Two reports, two answers Section 3.4
Nobody reads it The report runs, and no one acts Section 1; review whether anyone still reads it
Misleading chart A decision made on an exaggerated difference Section 3.8
Hidden filters A copy on a desk with no context Print the parameters

6. Questions to ask before you build any report

Print this page and answer it in writing.

  1. Who will read it? (A name, not "management".)
  2. What decision or duty does it serve?
  3. What would they do if the number were higher? Lower? If nobody can say, reconsider.
  4. What is one row? (The grain.)
  5. Which measures, defined how, owned by whom?
  6. What is it compared against? (Last period, target, peers, plan.)
  7. How often will it run, and what must be true of the data when it does?
  8. What can go wrong? (Blanks, duplicates, refunds, late data.)
  9. How will I prove it's right? (The tie-out.)
  10. How will it reach the reader, and how will I know it did?
  11. How long must it be kept, and who may see it?
  12. When will I review whether anyone still reads it?

7. Further reading

Book Why
Edward R. Tufte, The Visual Display of Quantitative Information The classic on honest, dense, clear graphics
Stephen Few, Show Me the Numbers Tables and graphs for business, practically
Alberto Cairo, The Truthful Art Visualizing data without misleading
Darrell Huff, How to Lie with Statistics Short, old, and still sharp
Ralph Kimball and Margy Ross, The Data Warehouse Toolkit Grain, dimensions and facts, from the source

8. The short version

  1. A report is a message from data to a person who must act.
  2. Start with the decision, not the data.
  3. Know the grain. Keep totals and counts, and divide last.
  4. Make the parts add up to the whole, and prove it.
  5. One definition, one place, one owner.
  6. Show context, show less, and put exceptions first.
  7. Do not mislead, even by accident.
  8. When the reader needs their own numbers in a form they can keep, the answer is a document.

Back to the start: README