set_icon_rules
Apply discrete rule-based icons to a measure column in a Power BI table or matrix. Define min-max color bands, optional glyphs, and icon layout to visually encode values at a glance.
Instructions
Apply DISCRETE rule-based ICONS to a measure column in a table/matrix: each value in [min, max) maps to an icon. rules = JSON array of {min, max, color}. glyphs = optional comma-separated icon glyph names (one per band, e.g. ArrowDown,ArrowSideways,ArrowUp) - when given, each band uses that glyph instead of being colour-keyed. iconSet picks the glyph family (e.g. ThreeArrowsColored, ThreeFlags, ThreeTrafficLights1). layout = left|right|icon-only (where the icon sits relative to the value). Verify in Desktop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| rules | Yes | JSON array of {min, max, color} bands | |
| glyphs | No | optional comma-separated glyph names, one per band | |
| layout | No | left | right | icon-only | |
| visual | Yes | table/matrix visual name | |
| iconSet | No | optional icon-set family, e.g. ThreeArrowsColored | |
| measure | Yes | measure that drives the icons | |
| measureTable | Yes | table that owns the measure | |
| reportSessionId | Yes |