Visual Reference Lines: Choosing a Meaningful Benchmark
A bar or point tells you a value, but you often need a comparison to interpret it. A visual reference line marks a constant or computed value on a chart’s axis. In Tableau, you use it to compare observations with a target, a typical value or another meaningful benchmark. The important decisions are what the line represents and which observations contribute to it.
Choose the benchmark
A reference line belongs on a continuous axis. Its position uses the same scale and units as the values you are comparing. A sales target measured in units belongs on the units-sold axis.
A constant line represents a supplied value, such as a monthly target of 200 units. Its value does not depend on the observations used to draw the chart. A computed line represents a summary, such as an average, minimum or maximum, calculated over a chosen part of the view.
The four monthly sales values shown have an average of 170 units. That average describes observed performance; the 200-unit target states an expectation. These benchmarks answer different questions, even when both appear on the same chart.
For an average of equally weighted displayed values:
Here, n is the number of values included. An average of displayed summaries is not automatically an average of all underlying records. For example, averaging store averages gives each store equal weight, regardless of how many transactions it handled.
Set the scope
The scope specifies the portion of the view over which the reference line is calculated and displayed. Tableau offers Table, Pane and Cell destinations when the view supports them.
Scope | Comparison area | Typical use |
|---|---|---|
Table | The entire view for the chosen axis | Compare observations with one overall benchmark |
Pane | Each subdivision of the view | Compare observations with their own group’s benchmark |
Cell | Each smallest partition of the view | Give each individual partition its own benchmark |
A pane might contain one region’s monthly sales. A Pane average then compares months within that region. A Table average instead provides a shared comparison across regions.
Cell does not always mean one observation. Inspect the worksheet’s structure. If a cell contains just one value, an average line for that cell coincides with that value and adds little information. Changing scope can change a computed benchmark; repeating a constant across scopes does not change its numeric value.
Add and communicate the line
With a suitable continuous axis in the view, drag Reference Line from the Analytics pane onto the appropriate scope destination. In the dialog, choose the value and computation, then set a useful label and line formatting. You can edit an existing line to revise these choices.
Use a label that communicates meaning, such as Monthly target: 200 units or Average monthly sales. A number alone does not explain whether the line is a target or an observed summary.
Interpret the direction in context. Higher sales may be desirable, whereas higher waiting times may be undesirable. Above the line does not automatically mean better performance.
What to remember
- Use a constant for a supplied target and a computed value for a data summary.
- Match the benchmark’s units and level of aggregation to the comparison.
- Choose Table, Pane or Cell deliberately.
- Label what the line means and interpret its direction in context.
Example: Comparing Branch Waiting Times
A service team’s benchmark is a comparison value used to assess performance. Its Tableau worksheet has two panes, one for Harbor branch and one for Hill branch. Each pane displays three monthly mean waiting times on a continuous minutes axis. For this report, each monthly mark receives equal weight. Management also sets a fixed target of 7 minutes; lower waiting times are better.
Branch | April mean (min) | May mean (min) | June mean (min) |
|---|---|---|---|
Harbor | 6 | 8 | 10 |
Hill | 4 | 6 | 5 |
a) Find each branch’s average across its three monthly marks. Specify the scope for visual reference lines that show these separate averages.
First add the three monthly values within each branch. Harbor’s sum is ________, and Hill’s sum is ________. These sums are intermediate quantities, not the reference-line positions.
Divide each sum by its three equally weighted monthly marks:
Choose Average with Pane scope because each branch occupies its own pane. The final reference-line values are 8 minutes for Harbor and 5 minutes for Hill.
b) Find the average across all six displayed monthly marks. Specify its scope and compare its value with Harbor’s own average.
The combined sum of the monthly values is ________, and the number of equally weighted marks is ________. Use these values to calculate the average across the view:
Choose Average with Table scope to calculate the benchmark across both branch panes. Harbor’s own average exceeds this benchmark by:
The Table-scope reference line is 6.5 minutes. Harbor’s average is 1.5 minutes above it. This benchmark describes the six monthly marks; the information supplied does not establish a mean across individual customers.
c) Specify the settings for the fixed management target across the whole view. Use it to evaluate each branch’s June result.
Choose a Constant value of 7 minutes with Table scope. Label it Management target: 7 min so viewers can distinguish the target from an observed average.
Compare each June value with that fixed target:
Because lower waiting times are better, Harbor misses the target by 3 minutes, while Hill beats it by 2 minutes. The constant remains 7 minutes regardless of either branch’s observed average.
An analyst is preparing visual reference lines for a Tableau worksheet with several panes and multiple cells. Match each setting to the function it controls.
Uses the entire view as the comparison area for the chosen axis
Uses each subdivision of the view as a separate comparison area
Uses each smallest partition of the view as a separate comparison area
Uses a supplied fixed numeric value rather than a summary of observations
Constant
Pane
Table
Cell
A Tableau worksheet displays one daily order-total bar for each of four stores: Birch has 30 orders, Cedar 70, Maple 90 and Pine 150. A Table-scope Average visual reference line gives each displayed store total equal weight. At what value should the line appear? Answer in orders, to one decimal place.