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.
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.
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.
Why These Charts Matter
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.
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.
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
CNT() or the count of records to show frequency on the y-axis.Building a Box Plot in Tableau
Reading a Histogram: Shape Matters
Reading a Box Plot: Key Zones
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:
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.
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.
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.
Common Mistakes
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: