add_slicer
Add a slicer to a Power BI report page for one column or measure. Choose between Dropdown, List, or range modes for numeric/date filters.
Instructions
Add a slicer for one column or measure. Defaults to a compact Dropdown (what users almost always want); pass mode=List for the classic vertical list, Between/Single for numeric/date ranges.
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>",
"pageName": "<pageName>",
"table": "<table>",
"field": "<field>"
},
"name": "add_slicer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| kind | No | column|measure | column |
| mode | No | Dropdown|List|Between|Single | Dropdown |
| field | Yes | ||
| table | Yes | ||
| title | No | ||
| width | No | ||
| height | No | ||
| pageName | Yes | ||
| reportSessionId | Yes |