BigData / Tableau Interview Questions
What is a bin in Tableau, and how is it different from a histogram?
A bin is a field that groups a continuous measure into fixed-size ranges (buckets), turning something like exact ages into ranges such as 0–10, 10–20, 20–30, and so on.
Right-click [Age] -> Create -> Bins... -> Bin size: 10 -> produces a new field "Age (bin)" with values like 0, 10, 20...
- Creating a bin produces a new discrete field, which can then be used on Rows/Columns like any dimension.
- The bin size is configurable, and Tableau suggests a reasonable default based on the data's range and distribution.
A histogram is the chart built on top of bins — it's specifically a bar chart where the X-axis is a binned field and the Y-axis is a count (or other aggregation) of records falling into each bin. In other words: a bin is the underlying field/grouping mechanism, while a histogram is the specific visualization that displays those bins as bars, typically created automatically via the "Show Me" panel once a single measure is selected.
More Related questions...