5

Predictive Planning – How to go beyond 1000 entities

 2 years ago
source link: https://blogs.sap.com/2021/07/29/predictive-planning-how-to-go-beyond-1000-entities/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Technical Articles
Posted on July 29, 2021 5 minute read

Predictive Planning – How to go beyond 1000 entities

1 Like 16 Views 0 Comments

Fig-0-1-scaled.jpg

The goal of this blog is to bypass the restriction of one thousand entities that are supported by SAP Analytics Cloud (SAC) Predictive Planning in a predictive model (please refer the online help in section “Restrictions Using Planning Model as Data Source for Smart Predict”).

Note: It is necessary to adjust the planning model accordingly.

To illustrate the explanations, I have created an example of the sales of one thousand car models for ten countries and months since 2015. The goal is to forecast the sales for the next twelve months per country or group of countries and car models.

This is equivalent to generate 10 * 1 000 = 10 000 entities. It is over the limit for one predictive model.

So, the idea is to use custom properties in the planning model . Let’s see how this works.

In SAC, browse to the planning model, open it, and select the dimension Country and expand it.

Fig-01.jpg

Fig 1 – Expand Country dimension

The ten countries are listed here.

To show the possibilities, I will group the countries as shown below:

  1. Group 1: USA
  2. Group 2: CHINA
  3. Group 3: FRANCE, BELGIUM, and SWITZERLAND
  4. Group 4: SPAIN and ITALIA
  5. Group 5: UK, IRELAND, and GERMANY

At the bottom of the right panel, click the Create Property button to create a custom property to the  dimension Country. The Edit Property dialog box appears.

Fig-02.jpg

Fig 2: Add a custom property USA for Country

In the ID column, for USA, enter the value of the customer property as USA.

Fig-03.jpg

Fig 3: Set value USA for custom property USA for ID USA and nothing for the other IDs

Repeat this for group 2: CHINA.

For Group 3, create the custom property FRANCE BELGIUM SWITZERLAND to Country.

Fig-04.jpg

Fig 4: Custom property FRANCE BELGIUM SWITZERLAND for Country

In the ID column, for FRANCE BELGIUM SWITZERLAND, enter the value of the customer property as FRANCE BELGIUM SWITZERLAND.

Fig-05.jpg

Fig 5: Set value FRANCE BELGIUM SWITZERLAND for custom property FRANCE BELGIUM SWITZERLAND for IDs FRANCE, BELGIUM and SWITZERLAND and nothing for the other IDs

Repeat this for groups 4 and 5. At the end, the page should look like this:

Fig-06.jpg

Fig 6: Ten custom properties set for the ten values of Country

Don’t forget to save your planning model.

Proceeding this way allows to simulate the five groups of countries. Each group has one thousand products.

Now that the planning model is prepared, as a planner, I shall start from the planning story as shown below. Here, I have the sales for each country and products from 2015 to 2020. I want to get the predictive forecasts for the twelve months in 2021. I create the private version Private Forecasts in which I have copied the actuals and that will receive the predictive forecasts to be generated by SAP Analytics Cloud Predictive Planning for 2021.

Fig-07.jpg

Fig 7: Planning story with historical data

Create a Predictive Scenario with one predictive model configured to forecast sales for group 1: USA. The configuration in the figure below shows that the custom property USA has created a virtual dimension COUNTRY.USA. Combined with the dimension PRODUCTS, there are exactly one thousand entities in this predictive model, and we are still under the limit.

Fig-08.jpg

Fig 8: Configuration of predictive model for USA and all products

Once this predictive model is trained, we have the predictive forecasts for 2021 for USA and all car models as shown below.

Fig-09.jpg

Fig 9: Predictive forecasts for USA and all car models.

Then duplicate this predictive model. Open the status pane at the bottom, select the predictive model, click on the three dots on the right and choose Duplicate.

Fig-10.jpg

Fig 10: Duplicate the predictive model.

Set the new predictive model with all car models and group 3: FRANCE BELGIUM SWITZERLAND. Here again, we are below the limit on the number of entities.

Fig-11.jpg

Fig 11: Setting for predictive model for all car models and France, Belgium and Switzerland.

Train this predictive model. Here the three countries are in the same group. It is the business choice I have made when I create the custom property. The data is aggregated for these three countries. This means that the predictive forecast for 2021 will be the same for each of these countries. When the predictive forecasts are saved into the planning model, they are equally spread avec the three countries.

Fig-12.jpg

Fig 12: Predictive forecasts for all car models and France, Belgium, Switzerland.

I continue this process for the three remaining groups. At the end there are five predictive models inside the Predictive Scenario. Each one has one thousand entities. Note that it is not necessary to wait the end of a training to start the next one. The five predictive models can be trained in parallel.

Fig-13.jpg

Fig 13: The five predictive models

The last step consists in applying in sequence these five predictive models to the private version of the planning model to save the predictive forecasts inside the planning. Note that the application of a predictive model needs to put a lock on the planning model to write the predictive forecasts. Once done the lock is released. This is the reason the five predictive models must be applied in sequence.

Fig-14.jpg

Fig 14: Predictive forecasts applied to the planning. Predictive forecasts are equally spread over Belgium, France and Switzerland

I hope you have appreciated this reading and that this workaround will be useful for you. I’d be  grateful if you left a comment to that effect, and don’t forget to like it as well. Thank you.

Resources to learn more about Predictive Planning.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK