Set Conditional Format
pbir_set_conditional_formatApply conditional formatting to a visual container's background or title font using rules, gradient, or clear options. Supports comparison operators for conditions.
Instructions
Apply conditional formatting to a visual container background or title font. formatType: rules / gradient / clear. ComparisonKind: 0=Eq,1=GT,2=GTE,3=LT,4=LTE,5=NEq.
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": {
"visualId": "<visualId>",
"formatType": "<formatType>"
},
"name": "pbir_set_conditional_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | Ordered list (first match wins) | |
| entity | No | Driving table name | |
| pageId | No | Page ID. Auto-resolved when only one page exists. | |
| maxColor | No | gradient | |
| midColor | No | gradient (optional 3-stop) | |
| minColor | No | gradient | |
| property | No | background | |
| visualId | Yes | The visual ID | |
| isMeasure | No | ||
| property2 | No | Driving column/measure name | |
| formatType | Yes | ||
| defaultColor | No |