01 / 22

Histograms &
Box Plots

Learn to build and interpret histograms and box-and-whisker plots in Tableau: from dragging dimensions to reading the five-number summary at a glance.

Tableau

What Is a Histogram?

A histogram groups continuous numerical data into equal-width intervals called bins, then uses the height of each bar to show the frequency (count) of values falling inside that bin.

0-10 10-20 20-30 30-40 40-50 50-60 0 5 10 15 18 Score Range (bins) Frequency

What Is a Box Plot?

A box-and-whisker plot visualizes the five-number summary of a dataset: minimum, first quartile (\(Q_1\)), median (\(Q_2\)), third quartile (\(Q_3\)), and maximum. It reveals spread, center, and outliers at a glance.

Min \(Q_1\) Median \(Q_3\) Max 12 25 38 52 67 IQR = \(Q_3 - Q_1\)

Why These Charts Matter

★ Shape
Histograms reveal whether data is symmetric, left-skewed, or right-skewed.
★ Spread
Box plots show range and IQR instantly, making variability easy to compare.
★ Outliers
Box plots mark individual outliers as dots beyond the whiskers.

The Five-Number Summary

Every box plot is built from exactly five statistics. Tableau calculates them automatically when you choose the box-and-whisker mark type.

1
Minimum: the smallest data value (excluding outliers)
2
\(Q_1\) (25th percentile): the median of the lower half
3
Median (\(Q_2\)): the middle value of the entire dataset
4
\(Q_3\) (75th percentile): the median of the upper half
5
Maximum: the largest data value (excluding outliers)

Bin Width: Too Few vs. Too Many

The bin size (width of each interval) controls how much detail you see. Tableau lets you adjust it by right-clicking the bin field and choosing Edit.

Too Few Bins 0-50 50-100 Good Bin Width 0-10 10-20 20-30 30-40 40-50 50-60

Histogram vs. Bar Chart

Feature Histogram Bar Chart
Data type Continuous / numerical Categorical
Bars touch? Yes: no gaps No: gaps between bars
X-axis Equal-width bins Discrete categories
Reorderable? No: order is numerical Yes: any order works
Shows Distribution shape Category comparison

Building a Histogram in Tableau

1
Create a bin: In the Data pane, right-click a continuous measure → Create → Bins.... Set the bin size (e.g., 10).
2
Drag the bin to Columns: The new bin dimension appears under Dimensions. Drag it to the Columns shelf.
3
Drag the original measure to Rows: Use CNT() or the count of records to show frequency on the y-axis.
4
Adjust bins: Right-click the bin field → Edit... to change bin size until the shape looks meaningful.

Building a Box Plot in Tableau

1
Drag a measure to Rows: For example, drag Sales onto the Rows shelf.
2
Drag a dimension to Columns: Adding Category creates side-by-side box plots for comparison.
3
Select Box Plot from Show Me: Open the Show Me panel and click the box-and-whisker plot icon.
4
Disaggregate (Optional): To see the underlying data points, go to the Analysis menu and uncheck Aggregate Measures.

Reading a Histogram: Shape Matters

Symmetric
Left and right sides mirror each other. \( \text{Mean} \approx \text{Median} \). Example: heights in a class.
Right-Skewed
Tail extends to the right. \( \text{Mean} > \text{Median} \). Example: household income.
Left-Skewed
Tail extends to the left. \( \text{Mean} < \text{Median} \). Example: age at retirement.
Symmetric Right-Skewed Left-Skewed

Reading a Box Plot: Key Zones

25% of data 25% 25% 25% of data Outlier Outlier Min \(Q_1\) Median \(Q_3\) Max IQR: middle 50%

The Outlier Rule

Tableau uses the \(1.5 \times \text{IQR}\) rule to flag outliers. A value is an outlier if it falls outside the fences:

Lower Fence
\(Q_1 - 1.5 \times \text{IQR}\)
Upper Fence
\(Q_3 + 1.5 \times \text{IQR}\)

Example: Test Scores Histogram

A class of 30 students scored between 40 and 100 on a test. We create bins of width 10 to visualize the distribution.

2 3 5 9 7 4 40-50 50-60 60-70 70-80 80-90 90-100 0 2 5 9 Score Range Students

Example: Sales Box Plot

A store tracks daily sales (in dollars) for 60 days. The five-number summary is: \( \text{Min} = \$120 \), \( Q_1 = \$280 \), \( \text{Median} = \$410 \), \( Q_3 = \$560 \), \( \text{Max} = \$720 \). One day hit $1,050.

$1,050 $120 $280 $410 $560 $720 IQR = $280

Side-by-Side Box Plots in Tableau

To compare distributions across groups, drag a dimension (e.g., Region) to Columns and a measure (e.g., Profit) to Rows. Then choose box plot from Show Me.

$0 $200 $400 $600 $750 East West South Profit

Common Mistakes

✕ Wrong Data Type
Using a categorical field instead of a continuous measure. You get a bar chart, not a histogram.
✕ Forgetting Bins
Dragging a raw measure to Columns without creating a bin first results in a single bar, not a distribution.
✕ Aggregated Box Plots
Leaving Aggregate Measures checked collapses data points. Uncheck it under Analysis to see individual values.

Histogram vs. Box Plot

Feature Histogram Box Plot
Best for Seeing shape of distribution Seeing center, spread, outliers
Shows individual values? No: grouped into bins Partially: outliers shown
Comparing groups Harder: need separate histograms Easy: side-by-side
Reveals skewness Yes: visually obvious Yes: median position in box
Tableau setup Create bin → Columns → CNT() Measure → Rows → Show Me

Question 1 of 5

What must you create in Tableau before building a histogram from a continuous measure?

Question 2 of 5

In a box plot, the median is represented by:

Question 3 of 5

A dataset has \(Q_1 = 30\), \(Q_3 = 70\). Using the \(1.5 \times \text{IQR}\) rule, what is the upper fence?

Question 4 of 5

Which chart type is better for comparing the profit distributions of four product categories side by side?

Question 5 of 5

If a histogram's tallest bars are on the left and a long tail stretches to the right, the distribution is: