Schedule the recalculation of a workbook#
Scheduling the recalculation of a workbook leaves its documents with up-to-date data at the times you choose, without anyone having to open and recalculate them by hand.
Before you start#
- You need Workbook administration and to be able to open the workbook.
- Check Keep data in the documents you want recalculated: in More document actions › Properties… of their viewer, also in a listing. Only those are recalculated.
Schedule the recalculation#
- Open the workbook menu: in Workbooks, the three dots of its row; or, with the workbook open, the workbook menu in its header.
- Choose Schedule recalculation….
- The Scheduled recalculation of “…” dialog says how many documents of the workbook keep data. If none does, it warns you: “No document of this workbook keeps data: the recalculation would leave nothing.”.
- In When, choose the schedule (see The schedule): for example, Daily at 06:00. The Upcoming runs list shows the next dates so you can check it.
- Leave Active (if not, it keeps the schedule but does not run by itself) checked.
- Click Save. The dialog says “Saved. Next recalculation: …”.


Below the schedule, the dialog says on whose behalf it runs: “It will run in your name, with your privileges.” in a new one, or “It runs in the name of …, with their privileges… When saved, it will run in the name of whoever saves it.” in one that already exists.
The schedule options#
In the Schedule list:
| Option | What it does |
|---|---|
| No schedule (manual only) | Saves the task without a time: it only runs with Run now. |
| Daily, Weekly, Monthly, Once | See The schedule. |
Unchecking Active keeps the schedule but stops running it by itself, for example during a holiday.
Only if there is new data#
A recalculation that is scheduled often, for example every hour while waiting for the nightly load to arrive, can recalculate only when the database has changed. Choose it in Only if there is new data:
| Option | What it does |
|---|---|
| Always recalculate | The initial option: it recalculates at each scheduled time. |
| If the latest date has changed for a date | Before recalculating, it looks at the most recent date in the data of that dimension. If it is the same as in the last recalculation, it does not recalculate. |
| If the total has changed for a metric | It looks at the total of the metric and the number of records. If both are the same as in the last recalculation, it does not recalculate. |
The check is a small query, with the privileges of the owner of the task. When there is no new data, the run appears in the history as No new data, with the message “No new data since the last recalculation: not recalculated”, and nothing is published or sent: the subscriptions, alerts and file export “after the recalculation” wait for the next real recalculation. It is not a failure. If the check fails (for example, because the database does not respond), the run is marked as Error and it is not recalculated.
- Run now always recalculates, without checking whether there is new data.
- With this option, the repetition during the day is at most every 5 minutes: the editor warns you with “With “only if there is new data” it repeats at most every 5 minutes”.
- If the owner of the task or the chosen option changes, the first recalculation is always done.
Run now#
With the task saved, click Run now to recalculate the workbook right away, on your behalf. It does not change the next scheduled run. If it finishes successfully, it counts as one more recalculation: it triggers the publication, the subscriptions and the alerts “after the recalculation”.
While it runs, the dialog shows its status and the Stop button. When it finishes, the run appears in Last runs.
Stop a run#
Click Stop to stop a run in progress. The documents being recalculated are canceled; those that already finished keep their new data. The run appears in the history as Stopped, in your name. Stopping is not a failure: it does not count for the notices of failing tasks.
The last runs#
The Last runs table shows, for each run, its Start, By (“Scheduled” or “Manually”, and on whose behalf: “Scheduled · gestor.libros”), the Outcome and the Duration. Expand one to see a step per document, with its status and its message. See Tasks and history.
Remove the schedule#
Click Remove the schedule… and confirm with Remove the schedule. The workbook stops recalculating by itself; its history is kept.
The subscriptions and data alerts “after the recalculation” of the workbook stop being triggered until you schedule it again, unless a recalculation group recalculates it.
What happens with the recalculation#
- Each document that keeps data is calculated in its own job, in the normal queue, with the privileges of the owner of the task.
- Each attempt to recalculate the workbook has a maximum time (2 hours by default). If it runs out, its jobs are canceled and it counts as failed.
- Each document that finishes successfully stores its data. If the workbook is published after the recalculation, the version with that data is published.