Binning

Fast histograms!

Binning groups numeric values into ranges (“bins”) instead of showing each unique value. This is commonly used for histograms, frequency distributions, or when you want to simplify data with lots of distinct values.

You can enable Binning from the Logic tab options of a numeric field in a visual:

  • Bin (toggle) – Turns binning on for the field.

  • Width – Sets the size of each bin. For example, with a width of 30, values are grouped into ranges like 0–30, 30–60, 60–90, and so on.

If you want more control over how values are grouped, you can create a custom expression instead of using the default binning. This lets you define your own logic (for example, with a CASE WHEN expression) to set custom ranges, categories, or thresholds. Learn more about custom expressions.

Last updated