Optimize Planning Models Using the Planning Area

Performance in planning models is largely impacted by queries and planning actions. These two factors can be optimized to reduce processing time when working with large public versions.

By optimizing the planning area, you keep the data size manageable and can work on data that’s the most relevant to you. You can think of the planning area as a version’s data used for all planning actions, that you can filter out and refine when you're editing a public version. Its size may vary depending on the model settings. Optimizing the planning area is especially useful if you’re trying to limit the data size of a model with a large public version that’s not limited.

You can optimize the size of the planning area. Select Model Settings in the Details panel, then select the Planning section. For more information, see Planning.

How Does the Planning Area Work?

You can limit the size of the planning area either using data access control, data locking, or both. This corresponds to the recommended planning area, that decreases the size of a public edit version when you create it based on data access and data locking. Data access restrictions give you access to the data for which you have write access, while data locking restrictions give you access to the data regions that are unlocked. With the planning area, when you edit a public version, the application stores a reduced data snapshot but still shows locked data outside of that snapshot.

When using data access and/or data locking options, the application generates a recommended planning area based on the data access and data locks configuration. While using data access control works best when users have more read than write privileges, using data locking configuration is the most effective for model owners and users with administration privileges, or when most of the data is stored in locked data regions.

When working with a public version in a story, the planning area filters the data based on what data you have permission to edit. Only data that you have edit permissions for will be put into edit mode. Data actions and multi actions only affect data within your planning area.

An image of a table with data that can be edited and data that can't be edited due to data locks.

This example shows how a model with a recommended planning area based on data locks would appear in a table.

  1. This area is outside of the recommended planning area for this version. This data will not be put into edit mode on a public version.

  2. This area is inside the recommended planning area. You can plan on this data in a table, or by running a data action or multi action.

The planning area is disabled in existing public edit versions if a dimension referenced in the planning area is deleted. For more information, see Deleting Dimensions from a Model.

Customizing the Planning Area

If you're looking to further optimize the planning area when editing public versions, you can also choose a customized planning area. This option will allow you to choose the data that will be put into edit mode. However, publishing permissions will still impact which data can be published.

You can customize the planning area by selecting Start Edit Mode on a public version in the version management panel and then choosing Customized Planning Area. For more information about editing public versions, see Planning on Public Versions.

Auto-Generating the Planning Area

When configuring the recommended planning area in the Builder panel, you have the option of auto-generating the planning area based on the table context. If you are working with stories, the checkbox will be automatically selected in the builder panel, but you may still manually disable this option if needed.

If Auto-generate based on table context is enabled and you put the public version into Edit Mode, the recommended planning area takes into account the current table context that covers story, page, and table filters as well as data access control, data locking, or both.

Additionally, if this option is enabled, the planning area of a public edit version will be automatically extended when the table context is changed and data changes are made outside of the previous planning area. The extended planning area will be based on the expanded table context. It might be possible to make edits that cannot be published, such as when a cell belongs to a member for which you are missing write privileges.

When running a data action on a public edit version, the planning area will automatically extend to include all the relevant data impacted by the data action. You can see how many times the planning area was extended and how many database records were affected in the version history, and you can see whether the planning area was extended during a step in the job monitor.

However, if your data action is being run on a private version that already has a defined planning area, the automatic extension will not exceed the performance parameter that was set when creating the private version. If the automatic extension of the planning area based on a data action exceeds the performance parameter, the data action will fail.

Additionally, when running a data upload on a public version, if you select Empty Planning Area (No Version Data) from the Upload Job menu, the planning area will automatically extend the data from the selected file. You can see how many times the planning area was extended in the version history.

However, if your data upload job is being run on a private version or a public edit version that already has a defined planning area, the automatic extension will respect the setting that was created for the private version.

For more information about editing public versions, see Planning on Public Versions.

How Does the Planning Area Affect Performance?

The filter in a public edit represents the planning area. Although you’re explicitly limiting the planning area using the filter, the application merges the public version’s data to display data outside of the filtered data region. In a Budget2024 public edit version for instance, if the filter is set to Region Germany, it’s processed as Region.ID not in (‘Germany’) in the Budget public version that’s mapped to the public edit state that is visible. This way, data actions and multi actions are limited and contained within the filter and planning area, and the application provides better guidance in stories for planning actions. If a data action or multi action is outside the planning area, the application throws an error.

Having a small sized subset of data for a public can speed up performance significantly. However, there are additional costs to consider when a public edit has a defined planning area:

  • Each query must process the negated filter for data that’s outside of the data region.

  • Each query evaluates the filter to prevent data entry and planning actions for data that’s outside of the data region.

  • Each data action and multi action must process the filter to be consistent with the planning area.

The performance enhancements brought by the planning area largely depend on the complexity of the filter (based on either data locking, data access control and model privacy, or both).
The application uses heuristics to improve the filter performance:
  • Dimensions are treated independently so that filters like “(Product = Running Shoes and Time = 2020) or (Product = Tennis Shoes and Time = 2021)” are simplified to “Product in (Running Shoes, Tennis Shoes) and Time in (2020, 2021)”.

  • Filters on dimensions are ignored if the number of filter values becomes too high (for example, after the hierarchies are unfolded).

Editing Data with the Planning Area

When Auto-generate based on table context is disabled, the application marks cells that are (partially) outside of the planning area as not ready for input. In the above example only ‘Running Shoes’ is unrestricted by data locks. When the public version is set into edit mode and the planning area is used, the planning area will be limited to ‘Running Shoes’, too. Other products like ‘Tennis Shoes’ will not be part of the planning area and thus not ready for input. Also, the common parent in the hierarchy, ‘Footwear’, will not allow input.

In this example, the planning area coincides with the data locks. However, there are differences: You can choose to ignore data locks in the table. If the public edit was started without the recommended planning area, you can then change values that are usually locked. However, you cannot publish these changes. If the public edit was started with the recommended planning area, you cannot change these values, even if you choose to ignore the data locks. ‘Tennis Shoes’ is outside of the planning area and thus cannot be changed.

How the Planning Area Calculates Which Data You Can Edit

These are the rules for calculating whether a cell is inside the planning area:

  • For a cell to allow input, all member combinations that may be aggregated into its value must be inside the planning area. This means, the dimensions used in the filter of the planning area need to obey the following:

    • For a dimension with a hierarchy on an axis, all descendants of the dimension member must be inside the planning area.

    • For a dimension without a hierarchy on an axis, the dimension members belonging to this cell must be inside the planning area.

    • For a dimension that is not on an axis, a filter must limit the members to a subset of the members inside the planning area or all members of the dimension must be inside the planning area.

    • Dimension attributes that are on an axis are only considered if the dimension itself is not on an axis. Then a cell allows data entry only if all dimensions members that have the cells attribute value are inside the planning area. If the dimension itself is on an axis, the cells will only be marked as input enabled according to the dimension. An additional dimension attribute will be ignored. In this layout you can easily generate invalid cells, where the dimension members and the attribute values do not match.

Tips for Working with the Planning Area

The rules that determine whether a cell is inside the planning area can lead to situations in which cells no longer allow input, even though they would allow input without the planning area. For example, a cell of a public version that seems to allow data entries might not allow input once the version is put into edit mode. This is because the planning area is only applied when the edit mode is started.

Before starting the edit mode, it is not determined whether the edit mode will be done with or without planning area filters. Especially when the recommended planning area is based on data access control (DAC), this can lead to more restricted use than without using a planning area. If you have DAC enabled on a dimension that is neither on an axis nor in a filter of a table, data entry and publishing may work without planning area. If the data is distributed in the right way, you might only need to change the member combinations that you have write access to. When you enable the planning area based on data access control, however, the cells will not allow input anymore because the dimension is neither on an axis nor in the filter.

To avoid such situations, it is recommended to have all dimensions that are potentially used in the planning area filter on an axis or in a filter in your stories. You can influence which dimensions that includes by basing the recommended planning area either on data locks or on data access control or on both.