set_slicer_conditional_formatting
Apply measure-driven conditional formatting to slicers and button-slicers, using color bands for fill, font, or callout. Define rules as a JSON array of min, max, and color ranges.
Instructions
Apply measure-driven conditional formatting to a SLICER or button-slicer (generalises the table/matrix FillRule builders). target = fill|font|callout. rules = JSON array of {min,max,color} bands driven by the measure. Verify the render in Desktop.
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>",
"target": "<target>",
"measureTable": "<measureTable>",
"measure": "<measure>",
"rules": "<rules>"
},
"name": "set_slicer_conditional_formatting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| rules | Yes | JSON array of {min, max, color} bands | |
| target | Yes | fill | font | callout | |
| visual | Yes | slicer visual name | |
| measure | Yes | measure that drives the colour | |
| measureTable | Yes | table that owns the measure | |
| reportSessionId | Yes |