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}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"reportSessionId": "<reportSessionId>",
"page": "<page>",
"visual": "<visual>",
"measureTable": "<measureTable>",
"measure": "<measure>",
"rules": "<rules>"
},
"name": "set_font_color_rules"
}
}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 |