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.
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 |