Configuring Rolling Data

This chapter describes how to roll selected data, saving a copy of the current version of that data.

This chapter covers the following topics:

About Rolling Data

It is often useful to be able to see older data and possibly compare it with the current data. In the case of forecasts, the Analytical Engine automatically saves older versions. If you need access to older versions of other data, however, you must explicitly instruct Demantra to save the data.

To do so, you use the Business Modeler to make a copy of the original data (usually a series) for later use. You define one or more rolling data profiles, each of which associates a source series (or a server expression) with a target series.

Then you configure a rolling data session, which specifies a set of rolling data profiles to run. The rolling data session specifies which profiles are active.

You can execute the active profiles from within the Business Modeler or from a workflow.

Creating or Modifying Rolling Data Profiles

To create or modify a rolling data profile

  1. Select Engine > Rolling Data.

    The Rolling Data screen appears.

    the picture is described in the document text

  2. Do one of the following:

    • To select an existing profile, click the profile in the Profiles list.

    • To create a new profile, click Insert.

    The screen displays a check mark next to the profile that you are editing.

  3. Type a unique name and an optional description for the profile.

  4. In the Source area, do one of the following:

    • Select a source series from the Series drop-down list.

      Note: If the server expression for the series uses the round function, note that the rounding occurs before the data is rolled forward. In this case, you might have slight errors at aggregated levels.

    • Type a server expression into the Server Expression field. In this case, click Verify Expression to check the expression. The expression must be an aggregating SQL expression; see "Syntax of Server Expressions".

  5. Specify the period association of this data source by selecting an option from Source's Period.

  6. In the Target area, select a series from the Series Name drop-down box. Make sure that the target series is of the same data type as the source series or the source expression.

  7. Click Save.

To delete a rolling data profile

  1. Click the profile in the Profiles list.

  2. Click Delete.

  3. Click OK to confirm the deletion.

    See also

    "About Rolling Data"

Executing Rolling Data Profiles

To specify the active rolling data profiles

  1. Select Engine > Rolling Data.

  2. Click Configure.

    The Configure Rolling Session screen appears.

    the picture is described in the document text

  3. To include a profile to run, drag it from the left list to the right list. Or to exclude a profile from the next session, drag it from the right list to the left list.

  4. To change the order in which the profiles should be executed, drag the profiles up or down within the left list as required.

  5. Click Save.

To execute the active rolling data profiles

You can execute the active profiles in several different ways:

In any case, they are executed in the order in which they are listed in the Configure Rolling Session dialog box. For each active profile, Business Modeler copies the source data into the target series. Data for any given time bucket is copied into the same time bucket in the target series.

See also

"About Rolling Data"

"Preparing the Database"

Creating Rolling Data Profile Groups

Rolling profiles enable archiving or copying older data and comparing it with current data. (See About Rolling Data). Rolling Profile Groups facilitate data maintenance, by allowing you to organize profiles into business-relevant groups.

To configue a rolling profile group you must insert records into database tables via SQL. Therefore, this should only be performed by an experienced implementer or database administrator.

Rolling Profile Group Tables

Two tables are used to establish rolling profile groups and associate them with group member profiles. The ROLLING_GROUPS table establishes the name and ID of a rolling group, as shown below with sample data:

ROLLING_GROUPS

ROLLING_GROUP_ID NAME DESCRIPTION IS_ACTIVE APPLICATION_ID
1 Demand Mgmt Demand Mgmt profiles. 1 ROLLING_PROFILE:1
2 SPF SPF profiles 1 ROLLING_PROFILE:2

The ROLLING_GROUP_PROFILES tables is a one-to-many linking table associating the rolling profile group to one or more rolling profiles, as shown below with sample data.

ROLLING_GROUP_PROFILES

ROLLING_GROUP_ID PROFILE_ID
2 144
2 145
2 156
1 63
1 64

Stored Prodedure: EXECUTE_PROFILES

The stored procedure EXECUTE_PROFILES() allows an optional parameter to be passed in specifying the name of a rolling profile group. If no parameter is passed, then the active rolling data profile series is run. (If there is no active rolling data profile series, the following error message is displayed: "There are no active profiles for ROLLING_UPDATES".)

Procedure for configuring a rolling profile group

  1. Using an SQL tool for directly accessing the database, insert a new record into the ROLLING_GROUPS table.

  2. Update the field ROLLING_GROUP_ID to a unique value.

  3. Enter the group's name into the NAME field ("DM" and "SPF" are pre-seeded examples).

  4. These two are the only required fields.

  5. Insert a new record into the ROLLING_GROUP_PROFILES table for each profile you want to become a member of the group.

  6. Update the field ROLLING_GROUP_ID with the value of the group's corresponding field of the same name from the previous table.

  7. Update the field PROFILE_ID with the id of the profile you want to add to the group.

  8. After these two tables are updated, you must go to the Workflow Editor and create a Workflow step to call the stored procedure. The procedure name will be "execute_profiles." In the parameters section, add the name of the new rolling profile group.