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