Tableau Course
Histograms and Box Plots
Histograms show the shape of a distribution — where values cluster, how spread they are, and whether they skew. Box plots summarise that distribution in five numbers and make outliers instantly visible.
Distribution — The Question Behind Both Charts
Bar charts compare totals. Line charts show trends. Histograms and box plots answer a different question entirely: across all your data points, how are the values spread out? Are most orders worth a similar amount, or do a handful of giant orders skew the total? Are delivery times consistently fast, or wildly variable? Distribution charts expose the shape behind the summary statistic.
A SUM or AVG alone can be deeply misleading. An average order value of $450 could mean every order is roughly $450 — or it could mean 90% of orders are under $100 and a few massive orders drag the average up. Only a distribution chart reveals which situation you are actually in.
Histograms — Frequency Across Value Ranges
A histogram divides a continuous Measure into equal-width buckets called bins and counts how many data points fall into each bin. The X axis shows the value range, the Y axis shows the count of records in that range. The resulting bar pattern reveals the shape of the distribution — whether it is bell-shaped, skewed left, skewed right, or bimodal.
Histogram — Labelled Mockup
Reading Distribution Shape
Box Plots — Five-Number Summaries
A box plot condenses an entire distribution into five values and displays them as a compact visual. The five numbers are the minimum, the 25th percentile (Q1), the median (Q2), the 75th percentile (Q3), and the maximum. The box spans Q1 to Q3 — called the interquartile range (IQR) — showing where the middle 50% of values sit. The whiskers extend to the minimum and maximum, and individual dots beyond the whiskers are outliers.
Box Plot Anatomy — Labelled Mockup
Building a Box Plot in Tableau
Histogram vs Box Plot — Choosing the Right Tool
| Aspect | Histogram | Box Plot |
|---|---|---|
| Best for | Seeing the full shape of a distribution — peaks, skew, gaps | Comparing distributions across multiple groups side by side |
| Groups | One distribution at a time (or small multiples) | Multiple groups fit easily side by side |
| Outliers | Visible as isolated bars at the extremes | Shown explicitly as individual dots beyond the whiskers |
| Key output | Count of records per value range | Median, IQR, and outlier positions |
Most business analysts reach for averages and never look at the distribution behind them. This is a serious analytical blind spot. The Superstore Sales field is right-skewed — the vast majority of orders are small, but a handful of large orders push the mean well above the median. If you report average order value and use it to set sales targets, you are setting targets based on a number that most orders will never reach. A histogram makes this visible in seconds. For box plots, the most powerful use case is comparison: does the East region have a wider spread of order values than the West? Are outliers concentrated in one region? The box plot answers both questions in a single view that a bar chart of averages can never provide.
Practice Questions
1. Before building a histogram in Tableau, you need to create equal-width buckets from a Measure field. What are these buckets called and how do you create them?
2. You have disaggregated dots showing Sub-Category Sales by Region. What do you do to overlay the IQR box, median line, and whiskers?
3. A histogram of order values has a tall bar on the left and bars that shrink steadily toward the right. What distribution shape is this and what does it tell you?
Quiz
1. On a box plot, the shaded rectangular box spans from Q1 to Q3. What percentage of all data values fall inside this box?
2. A histogram looks too jagged with many tiny bars. What is the correct adjustment to make it show the overall distribution shape more clearly?
3. You need to compare the distribution of Sales across four Regions and identify outliers in each. Which chart type is better suited for this task?
Next up — Lesson 24: Treemaps — using nested rectangles to show part-to-whole relationships and proportional size at a glance.