Bin block

  • Updated

Use a bin block to assign a property to distinct bins or labels based on the range within which the property's value falls.

The bin block has two main configurations: assigning input values to bins and defining the bins themselves.

  • Input value – Used to calculate the bins' output. This input may refer to a catalog property, block, or parameter.
  • Bins – Add or remove configurations for individual bins as needed. The block matches input values with the bins set in the order they display. The block uses the first matching bin if a single value maps to multiple bins. Configure each bin as follows:
    • Label or bin – Name assigned to the bin.
    • Start – Minimum value included in the bin (inclusive).
    • End – Maximum value included in the bin (exclusive).
  • Out-of-range label – Used for input values that do not fall within any configured bins.

Example

To categorize users into different bins by the number of downloads,

  1. Select download_count as the value using the drop-down list.
  2. Click +, add as many bins as you want, and enter the values for each of them.
  3. Click Run.
oa-bin-metric.png

Output

The output of the bin block is a string value.