Skip to content

Configure discarded categories

UI ยท interface

Configures a minimum number of rows in a category below which the category will be hidden from the variable's filter view. .

Example

configure_discarded_categories(ds.cluster, { "thresholds": [{ "target": "EVERYTHING", "reference": "PERCENTAGE", "value": 20 }] })

Usage

The following are the step's expected inputs and outputs and their specific types.

configure_discarded_categories(column: category|list[category]|text, {"param": value})

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.

Inputs


column: column:category|list[category]|text

The column to configure.

Parameters


thresholds: array[object] | array[object] | array[object] | array[object]

A list of threshold configurations. A categorical column can have two kinds of thresholds determining whether specific categories will be hidden from its view in the UI: a minimum number of rows in the current selection below which a category will be hidden, or a minimum number of rows in the whole dataset (everything).

The thresholds parameter should be a list containing 1 or 2 objects: the configuration of a selection threshold, and/or the configuration of a threshold for everything.

Items in thresholds