Creating histograms

Histograms show counts or density of a measure, which is then discretized (binned) to make counting meaningful. They are best used to observe the distribution of the measure. They are sometimes confused with plain bar charts, which can be modified to show counts but usually encode the measure value as the length of the bar.

Getting ready

Let's use the sample file, Sample – Superstore Sales (Excel). Open a new worksheet and select Sample – Superstore Sales (Excel) as the data source.

How to do it...

Once the data is loaded, perform the following steps to create a histogram:

  1. Drag-and-drop Profit (bin) from the Dimensions pane into the Columns shelf.
  2. Drag-and-drop Number of Records from the Measures pane into the Rows shelf.
  3. You should ...

Get Tableau: Creating Interactive Data Visualizations now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.