You can create a chart to display a rolling forecast that updates dynamically when you change the Current period.

Sales forecast example

Create a rolling forecast for sales forecast figures over a 6-week period, for a one-year time frame. You can adapt this for different time frames and more complex use cases.

This is a process with three stages:

  1. Create a module.
  2. Create a chart.
  3. Update the Current period.

Create a module

Create a Sales forecast module:

  1. In the Time pane, select Weeks: General as the Calendar Type.
    Enter values for Start Date, Number of Weeks, and select a Current Period.
  2. Select Apply.
  3. In the Modules pane, create a Sales forecast module with two dimensions:
    • Time on columns.
    • Two line items on rows: Sales forecast and 6-week forecast.
  4. Format Sales forecast as Number and 6-week forecast as Boolean.
  5. Enter data into the line item, Sales forecast.
  6. Select 6-week forecast as true for all time periods.
  7. Apply a Time filter to display 6-week forecast cells equal to true.

Note: Charts support a maximum of 200 items or data points. If you adapt this example, ensure your time does not exceed this.

Create a chart

Create a line chart based on the Current period:

  1. Select the whole grid, then Create chart > Line Chart.
The Chart Options dialog for a line chart. The module behind the dialog has the whole grid selected and the chart displays data for all time periods.
  1. Select Publish to Dashboard and select the dashboard to publish to.
    If no dashboard currently exists, select New Dashboard to publish to a new dashboard.
  2. Return to the module and enter a formula into 6-week forecast:
    This sets the data as true for the Current period and the next 42 days (6 weeks). With your filter, this means that only data for the current period and the next 6 weeks displays.
A Sales forecast module with the 6-week forecast line item selected. The formula displays in the formula bar and only six time periods display in the grid.
  1. Refresh your dashboard.
    The chart now displays the data values from the start of the current period plus 42 days (6 weeks).
A Sales forecasting dashboard that displays a graph with data values for 6 weeks from the Current period. The Current period is W/c 25 Oct 22.

Note: You can also show a timeframe that starts before the Current period as well as after. For example, START() < CURRENTPERIODSTART() + 42 AND START() >= CURRENTPERIODSTART() – 21 displays a forecast for 21 days before the start of the Current period and 42 days after.

Update the Current period

Change the Current period in the Time pane and refresh the dashboard. You can do this in designer mode or on the published dashboard. The timeframe moves to begin at the new Current period. 

A Sales forecasting dashboard that displays a graph with data values for six weeks from the Current period. The Current period is W/c 6 Dec 22.


We update Anapedia content regularly to provide the most up-to-date instructions.