add_svg_icon
Create an SVG threshold icon measure for Power BI: display a unicode glyph whose color reflects the value's band. Provide rules as a JSON array of min, max, glyph, and color.
Instructions
Author an SVG THRESHOLD ICON measure (DataCategory=ImageUrl): renders a unicode glyph in a colour chosen by which [min,max) band the value falls into. rules = JSON array of {min,max,glyph,color}, e.g. [{"min":-1e9,"max":0,"glyph":"▼","color":"#D7263D"},{"min":0,"max":1e9,"glyph":"▲","color":"#2E7D32"}].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| size | No | svg size in px (square) | |
| rules | Yes | JSON array of {min,max,glyph,color} rules | |
| table | Yes | ||
| sessionId | Yes | ||
| valueMeasure | Yes | the value measure tested against the bands |