add_anomaly_detection
Enable anomaly detection on line charts in Power BI reports. Set sensitivity and explain-by fields to customize anomaly explanations.
Instructions
Add ANOMALY DETECTION to a line chart (the anomalyDetection object). sensitivity 0-100 optional (higher = more anomalies). explainBy = comma-separated fields the explanation groups by. 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>"
},
"name": "add_anomaly_detection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| visual | Yes | line-chart visual name | |
| explainBy | No | comma-separated explain-by fields | |
| sensitivity | No | 0-100 sensitivity | |
| reportSessionId | Yes |