add_svg_chip
Generate an auto-sizing SVG chip measure for Power BI that wraps a text measure in a rounded label whose width fits the text. Optionally set the fill color via a color measure or a default hex.
Instructions
Author an SVG CHIP/PILL measure (DataCategory=ImageUrl): an auto-sizing rounded label whose width fits the text. textMeasure supplies the label; colorMeasure (optional, returns a hex) supplies the fill, else defaultFill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| table | Yes | ||
| height | No | svg height in px | |
| sessionId | Yes | ||
| defaultFill | No | default fill hex when no colorMeasure | #2E86AB |
| textMeasure | Yes | a measure returning the chip's text | |
| colorMeasure | No | a measure returning the chip's fill hex (optional) |