set_font_color_rules
Apply discrete font-color bands to measure values in Power BI tables/matrices, using min/max rules to assign text colors.
Instructions
Apply DISCRETE rule-based FONT-COLOUR bands to a measure column in a table/matrix: each value in [min, max) renders its band text colour. Same rule structure as set_conditional_formatting, applied to the text colour instead of the background. rules = JSON array of {min, max, color}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| rules | Yes | JSON array of {min, max, color} bands | |
| visual | Yes | table/matrix visual name | |
| measure | Yes | measure that drives the colour | |
| measureTable | Yes | table that owns the measure | |
| reportSessionId | Yes |