Creating Histograms in Tableau – Detailed Notes
Course: JustAcademy Tableau Training
Course Demo: Register for a Tableau Course Demo
1. Introduction to Histograms
A histogram is a data visualization used to understand the distribution of numerical data. It groups numeric values into intervals called bins and displays the number of records that fall within each interval. Each bar represents a range of values, and the height of the bar indicates the frequency or count of records in that range.
In Tableau, histograms help analysts understand where values are concentrated, whether a dataset is evenly distributed, whether it contains unusually high or low values, and whether the data has one or multiple peaks.
Example: A company wants to analyze the salaries of 500 employees. Instead of displaying every employee's salary individually, a histogram can group salaries into ranges such as ₹20,000–₹29,999, ₹30,000–₹39,999, ₹40,000–₹49,999, and so on. The bars show how many employees fall into each range.
2. Learning Objectives
- Understand the meaning and purpose of a histogram.
- Learn the difference between histograms and ordinary bar charts.
- Understand bins, frequency, count, and bin size.
- Create a histogram using Tableau's Show Me feature.
- Create a histogram manually using a binned measure.
- Adjust bin sizes and format a histogram.
- Interpret distribution patterns and identify possible outliers.
- Apply histograms to business reporting and data analysis.
3. Important Histogram Terminology
| Term |
Meaning |
Example |
| Bin |
An interval or range used to group numerical values. |
₹20,000–₹29,999 |
| Bin size |
The width of each interval. |
10,000 salary units |
| Frequency |
The number of observations that fall within a bin. |
45 employees in a salary range |
| Distribution |
The way values are spread across the available ranges. |
Most salaries fall between ₹30,000 and ₹50,000. |
| Outlier |
A value that is unusually far from most other observations. |
A salary much higher than the rest of the salaries |
| Continuous measure |
A numerical field that can take values across a range. |
Sales, profit, quantity, age or salary |
| Count |
The number of records or values represented in a group. |
Number of orders in each quantity bin |
4. How a Histogram Works
A histogram converts a continuous numerical field into a set of ranges. Tableau assigns each record to the appropriate bin and calculates how many records belong to each range.
- Select a numerical measure: Choose a field such as Sales, Quantity, Profit, Age or Salary.
- Create bins: Divide the numerical range into intervals of equal width.
- Assign records: Each record is grouped according to its value.
- Count records: Calculate the frequency within every bin.
- Display the chart: Show the bins as bars so the distribution can be examined.
For a standard frequency histogram, the horizontal axis represents the numerical ranges and the vertical axis represents the number of records in each range.
Example Frequency Table
| Order Quantity Range |
Number of Orders |
| 1–2 items |
35 |
| 3–4 items |
60 |
| 5–6 items |
42 |
| 7–8 items |
25 |
| 9–10 items |
12 |
In this example, the 3–4 items range has the highest frequency, so it would have the tallest bar. The 9–10 items range has the lowest frequency, so it would have the shortest bar.
5. Histogram vs. Bar Chart
| Feature |
Histogram |
Bar Chart |
| Purpose |
Shows the distribution of numerical data. |
Compares values across categories. |
| Data type |
Usually continuous numerical data grouped into bins. |
Usually categorical data. |
| Horizontal axis |
Numerical intervals or bins. |
Categories such as regions or products. |
| Bar spacing |
Bars generally touch because the intervals are continuous. |
Bars are commonly separated by spaces. |
| Typical question |
How are order quantities distributed? |
Which region has the highest sales? |
| Example |
Distribution of customer ages. |
Sales by customer segment. |
6. Requirements for Creating a Histogram in Tableau
- A Tableau workbook connected to a data source.
- At least one suitable numerical measure, such as Sales, Quantity, Profit, Age or Salary.
- A worksheet in which the histogram will be created.
- A suitable bin size that groups values into meaningful intervals.
Histograms are especially useful when the goal is to study one numerical variable's distribution. If the main goal is to compare categories, compare exact individual values, or show changes over time, another chart type may be more appropriate.
7. Method 1: Create a Histogram Using Show Me
Tableau provides a convenient histogram chart type through the Show Me panel. This method is suitable for beginners and is usually the fastest way to create a basic histogram.
Step-by-Step Instructions
- Open Tableau Desktop or a compatible Tableau authoring environment.
- Connect to a data source, such as an Excel file, CSV file, or database.
- Open a new worksheet.
- Locate a numerical measure in the Data pane. For example, select Quantity from Sample - Superstore.
- Drag the Quantity measure to the Columns shelf, or select the measure in the Data pane.
- Open the Show Me panel.
- Select the Histogram chart type.
- Tableau creates bins for the numerical measure and displays the count of records within each bin.
- Review the axis labels, bin ranges, and bar heights.
- Rename the worksheet to something meaningful, such as Quantity Distribution.
What Tableau does automatically: The selected numerical measure is grouped into bins. Tableau uses the bin field along the horizontal axis and places the count of the original measure on the vertical axis. The exact default bin size depends on the data and Tableau's bin-size calculation.
Expected Result
A histogram appears with numerical ranges along the horizontal axis and counts along the vertical axis. The tallest bar identifies the bin containing the greatest number of records.
8. Method 2: Create a Histogram Manually Using Bins
Creating a histogram manually gives you greater control over the bin field and its size. This is useful when you want a specific interval width or need to understand how Tableau constructs the chart.
Step 1: Choose a Numerical Measure
In the Data pane, find the numerical measure that you want to analyze. For example, select Sales, Profit or Quantity.
Step 2: Create Bins
- Right-click the selected measure in the Data pane.
- Select Create > Bins.
- In the Create Bins dialog box, review the new field name.
- Enter a suitable value in the Size of bins field, or use Tableau's suggested size where available.
- Click OK.
Tableau creates a new binned field, often named something like Sales (bin) or Quantity (bin). This field groups the numerical values into equal-sized intervals.
Step 3: Place the Bin Field on Columns
Drag the newly created bin field to the Columns shelf. If required, use the field's context menu to convert it to Continuous so that the horizontal axis displays the intervals on a continuous numerical scale.
Step 4: Place the Original Measure on Rows
Drag the original numerical measure—not the bin field—to the Rows shelf. Tableau may initially display an aggregation such as SUM. For a frequency histogram, change the aggregation to Count.
Step 5: Verify the Chart
- The horizontal axis should display the bin ranges.
- The vertical axis should show the count of values in each bin.
- The bars should represent the frequency distribution.
- The title should clearly identify the numerical field being analyzed.
9. Understanding and Changing Bin Size
Bin size is the width of each numerical interval. Selecting an appropriate bin size is important because it changes the level of detail and can affect the patterns visible in a histogram.
How to Edit Bin Size
- Locate the bin field in the Data pane.
- Right-click the field, such as Sales (bin).
- Select Edit.
- Find the Size of bins setting.
- Enter the desired interval width.
- Click OK and review the updated histogram.
Example of Different Bin Sizes
Suppose customer purchase amounts range from ₹0 to ₹10,000.
| Bin Size |
Possible Ranges |
Typical Effect |
| ₹500 |
₹0–₹499, ₹500–₹999, and so on |
More detailed distribution with more bars. |
| ₹1,000 |
₹0–₹999, ₹1,000–₹1,999, and so on |
A moderate level of detail. |
| ₹2,500 |
₹0–₹2,499, ₹2,500–₹4,999, and so on |
Fewer, broader groups. |
Important: Very small bins can make a chart noisy, while very large bins can hide meaningful patterns. Try several reasonable bin sizes and select one that supports the business question without obscuring the data.
10. Discrete and Continuous Bin Fields
In Tableau, a binned field can appear as a discrete or continuous field. A discrete field creates separate headers for distinct values or ranges, whereas a continuous field creates an axis. For a typical histogram, a continuous bin axis often provides a clear view of the numerical intervals.
- Discrete bin: Shows each bin as a separate header.
- Continuous bin: Shows bins along a continuous numerical axis.
If the axis does not look like a conventional histogram, right-click the bin pill and check whether the Continuous option is appropriate for your view.
11. Formatting a Histogram
Good formatting makes the histogram easier to understand and present to business users.
11.1 Change the Chart Title
Use a descriptive title, such as Distribution of Order Quantities, Customer Salary Distribution, or Distribution of Order Sales.
11.2 Edit Axis Titles
Make the horizontal axis describe the measure ranges and the vertical axis describe the count or frequency. For example, use Order Quantity Range and Number of Orders.
11.3 Adjust Colors
Use a consistent color for a simple histogram. If you add a meaningful category to Color, ensure that the resulting colors help explain a comparison rather than merely decorating the chart.
11.4 Format Number Values
Use suitable number formats for currency, percentages, or counts. For example, display salary ranges as currency when analyzing payroll data.
11.5 Review Tooltips
Customize tooltips to show useful information, such as the bin range and number of records. Avoid adding too many fields that distract from the primary interpretation.
11.6 Keep the Chart Readable
- Use clear axis labels.
- Avoid unnecessarily complicated color palettes.
- Ensure the bin ranges are easy to interpret.
- Choose a readable font size.
- Use a concise title that describes the analytical purpose.
12. Interpreting Histogram Distribution Patterns
The overall shape of a histogram can reveal useful information about the underlying data.
12.1 Approximately Normal Distribution
A normal-shaped distribution is approximately bell-shaped, with most observations near the center and fewer observations toward either end. Real business datasets do not always follow a normal distribution.
12.2 Right-Skewed Distribution
A right-skewed distribution has most observations concentrated toward the lower or middle ranges, with a longer tail extending toward higher values. Customer spending, income, and property prices can sometimes show this pattern.
12.3 Left-Skewed Distribution
A left-skewed distribution has many observations toward the higher ranges and a tail extending toward lower values. This can occur when most scores are high but a smaller number of low scores remain.
12.4 Bimodal Distribution
A bimodal distribution has two noticeable peaks. This may indicate that the dataset contains two different groups. For example, a salary dataset might contain separate groups of entry-level employees and senior employees.
12.5 Uniform Distribution
A roughly uniform distribution has bars with similar heights across a range. The frequencies are approximately evenly distributed, although small differences may occur.
12.6 Possible Outliers
A small number of observations in extreme bins may indicate potential outliers. Investigate these records before deciding whether they are errors, unusual but valid observations, or evidence of a special business condition.
13. Business Applications of Histograms
| Business Area |
Numerical Field |
Example Question |
| Sales |
Order value |
What order-value ranges occur most frequently? |
| Human Resources |
Employee salary |
How are salaries distributed across the organization? |
| Marketing |
Customer spending |
Which spending ranges contain the most customers? |
| Education |
Exam score |
How are students' scores distributed? |
| Manufacturing |
Product measurement |
Are product measurements concentrated near the target range? |
| Customer Support |
Resolution time |
How long do support cases usually take to resolve? |
| Finance |
Transaction amount |
Which transaction ranges are most common? |
| E-commerce |
Delivery time |
How frequently are deliveries completed within each time range? |
14. Practical Example: Analyzing Sales Distribution
Business scenario: An online store wants to understand how its order sales are distributed. The analyst uses the Sales measure to determine whether most orders have low, medium, or high sales values.
Sample Data
| Order ID |
Sales Amount |
| 1001 |
₹450 |
| 1002 |
₹800 |
| 1003 |
₹1,200 |
| 1004 |
₹1,750 |
| 1005 |
₹2,200 |
| 1006 |
₹2,650 |
| 1007 |
₹3,100 |
| 1008 |
₹3,800 |
| 1009 |
₹4,500 |
| 1010 |
₹7,200 |
Steps to Complete the Analysis
- Connect Tableau to the sample dataset.
- Locate the Sales Amount measure.
- Create a bin field using a suitable interval size.
- Place the Sales Amount bin on Columns.
- Place the original Sales Amount measure on Rows and change the aggregation to Count.
- Give the worksheet the title Distribution of Order Sales.
- Inspect which sales ranges contain the most orders.
- Check whether any high-value orders fall into less frequent ranges.
Questions to Ask About the Result
- Which sales range contains the highest number of orders?
- Are most orders concentrated in a narrow range?
- Is the distribution skewed toward high-value orders?
- Are there a few unusually large orders?
- Would a different bin size reveal more useful detail?
The sample data above is illustrative. Actual findings must be based on the histogram created from the complete dataset.
15. Adding a Category to a Histogram
A category can sometimes help explain why a distribution has a particular shape. For example, you may want to compare order quantities by customer segment.
- Create a histogram using a numerical measure such as Quantity.
- Drag a categorical dimension, such as Segment, to Color on the Marks card.
- Review how the category contributes to the frequency within each bin.
- Use tooltips and clear labels to help interpret the comparison.
Depending on the view and configuration, Tableau may show colored sections within the bars. When comparing proportions between bins, configure the appropriate percentage calculation and verify that it is computed within each bin rather than across the entire view.
Tip: Adding many categories can make the histogram difficult to read. If the comparison becomes crowded, create separate views or use a filter.
16. Histogram vs. Other Distribution Charts
| Chart Type |
Best Used For |
Key Difference |
| Histogram |
Showing how numerical values are distributed across ranges. |
Shows frequency by bin. |
| Box Plot |
Summarizing median, quartiles and spread; comparing distributions. |
Emphasizes summary statistics and potential outliers. |
| Bar Chart |
Comparing values across named categories. |
Compares categories rather than continuous intervals. |
| Scatter Plot |
Exploring the relationship between two numerical variables. |
Shows paired values rather than frequency within one variable. |
| Line Chart |
Showing change over time or across an ordered sequence. |
Emphasizes trends and continuity over time. |
17. Common Mistakes and Troubleshooting
| Problem |
Possible Cause |
Solution |
| Histogram option is unavailable in Show Me. |
The view may not have the required single numerical measure selected, or other fields may be present. |
Start with a clean worksheet and select one suitable measure. |
| Bars show totals instead of record counts. |
The original measure is aggregated as SUM. |
Change the aggregation to Count for a frequency histogram. |
| Too many bars appear. |
The bin size may be too small. |
Increase the bin size and compare the resulting distribution. |
| Too few bars appear. |
The bin size may be too large. |
Reduce the bin size to reveal more detail. |
| The horizontal axis is difficult to read. |
The bin field may be discrete or the labels may be unclear. |
Review the continuous-axis setting and improve the labels. |
| The distribution looks unexpected. |
Data quality issues, extreme values, filters, or the bin size may affect the chart. |
Inspect the source data, filters, and bin settings. |
| Null values are not represented as expected. |
Some records may not have a usable value for the selected measure. |
Inspect null values and decide how they should be handled. |
| Category colors make the chart confusing. |
Too many categories may be displayed together. |
Use a filter, simplify the color encoding, or split the comparison into separate charts. |
18. Best Practices for Creating Histograms
- Use a numerical measure that is suitable for distribution analysis.
- Choose a bin size that balances detail with readability.
- Label the axes so viewers understand the intervals and frequency.
- Use a meaningful chart title that explains the analytical question.
- Inspect the source data and filters before interpreting unusual shapes.
- Consider several bin sizes before making a conclusion about skewness or peaks.
- Investigate possible outliers rather than automatically removing them.
- Use color only when it adds a useful comparison.
- Make sure the vertical axis represents the intended measure, such as count or percentage.
- Remember that changing bin size can change the apparent shape of the distribution.
19. Practice Exercises
Exercise 1: Quantity Distribution
Create a histogram using the Quantity field from Sample - Superstore. Identify the bin containing the most records and test a different bin size.
Exercise 2: Sales Distribution
Create a histogram using Sales. Experiment with multiple bin sizes and describe how the distribution changes.
Exercise 3: Profit Distribution
Create a histogram using Profit. Investigate whether values appear concentrated near zero and whether any bins contain unusually high or low profits.
Exercise 4: Compare Customer Segments
Build a histogram of order quantity and add Segment to Color. Explain whether the segments appear to contribute differently across the bins.
Exercise 5: Employee Salary Analysis
Using a suitable employee dataset, create a salary histogram. Select meaningful salary intervals and summarize where most employees fall.
20. Mini Project: Sales and Order Distribution Dashboard
Objective: Build a Tableau dashboard that helps business users understand the distribution of order sales and quantities.
Project Requirements
- Create a histogram for Sales.
- Create a histogram for Quantity.
- Use descriptive titles and axis labels.
- Include a relevant category filter, such as Segment or Region, if the data supports it.
- Keep the color palette consistent and readable.
- Add the worksheets to a dashboard.
- Write a short interpretation of the most common ranges and any potential outliers.
Expected Learning Outcomes
- Understand how numerical data can be grouped into bins.
- Build histograms using both Show Me and manual bin creation.
- Compare distributions across relevant groups.
- Communicate findings through a clear Tableau dashboard.
21. Interview Questions and Answers
Q1. What is a histogram?
Answer: A histogram is a chart that displays the distribution of numerical data by grouping values into intervals called bins and showing the frequency of records in each interval.
Q2. What is a bin in Tableau?
Answer: A bin is a numerical interval that groups values within a specified range. Tableau can create a binned field from a suitable numerical measure.
Q3. What is bin size?
Answer: Bin size is the width of each interval. It determines how finely the data is grouped.
Q4. How can you create a histogram in Tableau?
Answer: You can select a numerical measure and use the Histogram option in Show Me, or manually create bins, place the bin field on Columns, and place the count of the original measure on Rows.
Q5. What is the difference between a histogram and a bar chart?
Answer: A histogram displays the distribution of numerical values grouped into ranges, while a bar chart compares separate categories.
Q6. Why is Count commonly used on the Rows shelf?
Answer: Count measures how many records fall into each bin, which is the usual goal of a frequency histogram.
Q7. What happens when you reduce the bin size?
Answer: Smaller bins create more detailed intervals and usually produce more bars. They may reveal detail but can also make the chart noisy.
Q8. What happens when you increase the bin size?
Answer: Larger bins combine more values into each interval, producing fewer bars and a more summarized view of the distribution.
Q9. What is a right-skewed distribution?
Answer: It is a distribution with a longer tail toward higher values, while many observations are concentrated in lower or middle ranges.
Q10. What is a bimodal distribution?
Answer: It is a distribution with two prominent peaks, which may indicate two groups or patterns in the dataset.
Q11. Can you use color in a histogram?
Answer: Yes. A category can be placed on Color to examine how groups contribute to the bins. The result should remain readable and should be interpreted carefully.
Q12. When should you avoid a histogram?
Answer: Avoid using it when the primary objective is to compare named categories, show a trend over time, or examine the relationship between two numerical variables. A bar, line, or scatter plot may be more appropriate.
22. Quick Revision Checklist
- ☐ I understand what a histogram represents.
- ☐ I know the difference between a bin and a bin size.
- ☐ I can create a histogram using Show Me.
- ☐ I can manually create bins from a numerical measure.
- ☐ I can change the aggregation to Count for frequency analysis.
- ☐ I can edit bin size and interpret its effect on the chart.
- ☐ I can identify common distribution shapes.
- ☐ I can investigate potential outliers and unexpected values.
- ☐ I can format the chart with a clear title, labels, and useful tooltips.
- ☐ I can explain when a histogram is more appropriate than another chart.
23. Official Learning Resources
24. Conclusion
Histograms are valuable Tableau visualizations for understanding how numerical values are distributed. By creating bins, counting records, and choosing a suitable bin size, analysts can identify common ranges, compare distributions, and investigate possible outliers. A well-designed histogram helps transform raw numerical data into a clear view of business patterns.
To continue learning Tableau, explore the JustAcademy Tableau Training course or Register for a Tableau Course Demo.