set_forecast
Apply a complete forecast to a Power BI line chart, including length, units, confidence interval, seasonality, and ignore-last settings.
Instructions
Set a FULL forecast on a line chart (the forecast object: length/units/ignore-last/confidence/seasonality) - more complete than add_analytics_line forecast, which only sets the band. units = Point|Day|Month|Year. confidenceInterval e.g. 0.95. 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>",
"length": "<length>"
},
"name": "set_forecast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| units | No | Point|Day|Month|Year | |
| length | Yes | forecast length | |
| visual | Yes | line-chart visual name | |
| ignoreLast | No | points to ignore at the end | |
| seasonality | No | seasonality (points per cycle) | |
| reportSessionId | Yes | ||
| confidenceInterval | No | confidence interval e.g. 0.95 |