Creating Data Cubes

This chapter provides overviews of data cubes and the relationship between field definition attributes and data cube formats and discusses how to:

Click to jump to parent topicUnderstanding Data Cubes

This section discusses:

Click to jump to top of pageClick to jump to parent topicDefinition of a Data Cube

A data cube is a container for one kind of data that you use in cube collections.

You can place the same data cube in more than one cube collection. For example, you can place the EMPLOYEE_EXPENSE data cube in both an EMPLOYEE_ANALYSIS cube collection and an INCOME_STATEMENT cube collection. To populate the data cubes with data from the database, you map fields to the data cubes within the cube collection's properties.

See Mapping Data Cubes and Dimensions to Fields.

Within PeopleSoft Pure Internet Architecture pages with analytic grids, end users view cube collections and drag and drop data cubes to view their relationships to other data cubes.

You create four different types of data cubes that you use within an analytic model:

The four types of data cubes are not mutually exclusive, but certain combinational restrictions apply. For example, consider that all calculation data cubes contain formulas, and association data cubes may or may not contain formulas. When an association data cube does contain a formula, it is considered to be a type of calculation data cube. Similarly, when an input data cube contains a formula, it is also considered to be a type of calculation data cube. Any of these data cubes may also be considered virtual data cubes if their values are not stored in the database.

This table lists each type of data cube and specifies whether the data cube can contain a formula, whether the data cube can lack a formula, whether the data cube can be virtual, and whether the data cube can be nonvirtual:

Data Cube Type

Formula Allowed?

No Formula Allowed?

Can Be Virtual?

Can Be Nonvirtual?

Input

Yes

Note. When input data cubes contain formulas, they must use the INPUT built-in function.

Yes

No

Yes

Calculation

Yes

No

Yes

Yes

Association

Yes

Yes

Yes

Yes

Virtual

Yes

No

Yes

No

Example: Working with Data Cubes and Dimensions

To be useful, a data cube must work with one or more dimensions. For example, suppose that you want to track the sales of multiple products in multiple regions. First, create an input data cube called SALES and dimensions called PRODUCTS and REGIONS. Next, attach the PRODUCTS dimension and REGIONS dimension to the SALES data cube.

Note. When a cube collection is mapped to either a Writable-only record or a record with the Readable and Writable attributes, all data cubes in the cube collection should share the same set of dimensions.

The combined string of all the attached dimension names should not exceed 256 characters.

See Also

Creating Dimensions

Data Cubes and Dimensions

Click to jump to top of pageClick to jump to parent topicInput Data Cubes

Input data cubes receive their data from either the end user in the application or tables and views in the database. Input data cubes can exist in all types of cube collections, although they do not serve a purpose in intermediate/calculation cube collections. Use the INPUT built-in function to work with input cube data.

Note. Even though an input cube that uses either the INPUT built-in function is considered to be a type of calculation data cube, it would not serve a purpose in an intermediate/calculation cube collection.

See INPUT.

See Also

Creating Input Data Cubes

Understanding Types of Cube Collections

Click to jump to top of pageClick to jump to parent topicCalculation Data Cubes

Calculation data cubes contain formulas that calculate data based on the data of other cubes. Calculation data cubes can exist in all types of cube collections.

Note. Even though an input cube that uses the INPUT built-in function is considered to be a type of calculation data cube, it would not serve a purpose in an intermediate/calculation cube collection.

See Also

Creating Calculation Data Cubes

Understanding Types of Cube Collections

Click to jump to top of pageClick to jump to parent topicAssociation Data Cubes

An association data cube is a data cube that is formatted as a member of a dimension and has one or more attached dimensions. An association data cube associates two dimensions, enabling the end user to group members of one dimension into categories that are defined by the members of a different dimension. When an association data cube receives its values from dimension members, it can be considered to be a type of input data cube. When an association data cube receives its values from a calculation formula, it can be considered to be a type of calculation data cube.

Association data cubes can exist in all types of cube collections.

Example: Creating the DEPT_TO_REGION Association Data Cube

This example associates the DEPTID dimension with the REGION dimension. The following table lists the members that are included in each dimension:

DEPTID Dimension Members

Note. In the application, the end users group or categorize these members by categories that are defined by the members of the REGION dimension.

REGION Dimension Members

Note. In the application, the end users select members from this dimension to group members of the DEPTID dimension.

AUS01

APAC

AUS02

LATAM

BRA01

NAMER

CAN01

EUROP

EUR01

NA

GBR01

NA

JAP01

NA

JAP02

NA

MEX01

NA

USA01

NA

USA02

NA

This association enables the end user to group the members of the DEPTID dimension into categories that are defined by the members of the REGION dimension.

To create the DEPT_TO_REGION association data cube:

  1. Create a new data cube named DEPT_TO_REGION.

  2. Format the data cube as a member of the REGION dimension.

    This dimension contains the categories that the end user will use to group the members of the DEPTID dimension. These members appear in the right-hand column of the data cube's data. The end user can select these members from a drop-down list box.

  3. Attach the DEPTID dimension to the DEPT_TO_REGION association data cube.

    This dimension contains the members that the end user will group or categorize. These members appear in the left-hand column of the data cube's data.

This example shows an association data cube and its drop-down list box in an analytic grid:

DEPT_TO_REGION association data cube in the Analytic Model Viewer

See Also

Creating Association Data Cubes

Understanding Types of Cube Collections

Click to jump to top of pageClick to jump to parent topicVirtual Data Cubes

A virtual data cube is a type of calculation data cube whose values are not saved to the database. Virtual data cubes can exist in intermediate/calculation and presentation cube collections.

This table describes the characteristics of virtual data cubes and the resulting benefits to the analytic model:

Characteristic

Benefit

Value data of virtual data cube is not stored in the database.

Reduces:

  • Size of the database.

  • Time to load data from the database.

The analytic calculation engine does not recalculate the virtual data cube unless the virtual data cube has nonvirtual dependents.

Reduces recalculation time.

The analytic calculation engine neither allocates memory nor calculates virtual data cubes until it receives a request for recalculation of the virtual data cube.

Reduces memory consumption and recalculation time.

See Defining General Data Cube Properties.

When an end user loads an analytic instance, the underlying analytic model's virtual data cubes do not contain data. However, as soon as the analytic calculation engine receives a request for a virtual cube's data, the analytic calculation engine calculates the entire cube and places the totals and all nonzero values in a temporary storage area. After this point, if the application requires the data, the analytic calculation engine retrieves the data from the temporary storage area.

Virtual cube data is recalculated for these circumstances:

Note. Whenever a circumstance requires a recalculation of all the data in an analytic model (for example, when the application adds a member to a dimension), the temporary storage for all virtual data cubes is discarded. This storage is created again as needed.

Virtual data cubes have the following two restrictions. Otherwise, you can use virtual data cubes in the way you use nonvirtual data cubes.

Intermediate virtual cubes can count as output-only cubes, as long as they do not have nonvirtual dependents. For example, you can create formulas such as the following for output-only virtual cubes:

Even though SALARY_BY_EMPLOYEE and BENEFITS_BY_EMPLOYEE are used by another virtual cube, they are not recalculated by the analytic calculation engine if there are no nonvirtual dependents. For this reason, you must write the final formula for the SALARY_AND_BENEFITS_BY_EMPLOYEE data cube in this way:

GROUPSUM(RCD_JOB, SALARY, BUDGET_PERIOD, BUS_UNIT, EMPID, LEDGER, VERSION) + GROUPSUM(RCD JOB, Benefits, Budget Period, Bus Unit, EmpID, Ledger, Version)

See Also

Creating Virtual Data Cubes

Understanding Types of Cube Collections

Click to jump to parent topicUnderstanding the Relationship Between Field Definition Attributes and Data Cube Formats

Because data cubes receive data from fields, it is important to correctly set both the attributes of field definitions and the formats of data cubes to ensure compatibility.

The following table describes compatibilities between field definition attributes and data cube formats. Cells marked Yes indicate compatibility. Cells marked No indicate incompatibility. Cells marked Warn indicate potential compatibility and yield a warning during design time. During runtime, the analytic calculation engine generates an error if it determines that the mapping is not compatible.

Field Definition Attributes

Data Cube Format: Number

Data Cube Format: Date

Data Cube Format: Member

Data Cube Format: Text

Char

Warn

Warn

Yes

Yes

Number

Yes

No

Yes

Yes

Signed Number

Yes

No

Yes

Yes

Date

No

Yes

Yes

Yes

Time

No

No

No

No

Date Time

No

Warn

Note. When a date-formatted data cube is mapped to a field with a Date Time attribute, time-specific data is truncated in the data cube data.

Yes

Yes

Image

No

No

No

No

Long Char

No

No

No

No

See Also

Defining General Data Cube Properties

Creating Field Definitions

Click to jump to parent topicCreating Input Data Cubes

To create an input data cube:

  1. Select Start, Programs, PeopleTools 8.5x, Application Designer to access PeopleSoft Application Designer.

  2. After signing in to the PeopleSoft Application Designer, with an analytic model definition opens, select Part, New, Data Cube.

    The Edit Part Name dialog box appears.

  3. Enter the data cube name.

  4. Click the OK button.

Note. Do not create formulas for input data cubes.

See Also

Input Data Cubes

Click to jump to parent topicCreating Calculation Data Cubes

To create a calculation data cube:

  1. Select Start, Programs, PeopleTools 8.5x, Application Designer to access PeopleSoft Application Designer.

  2. After signing in to the PeopleSoft Application Designer, with an analytic model definition opens, select Part, New, Data Cube.

    The Edit Part Name dialog box appears.

  3. Enter the data cube name.

  4. Click the OK button.

  5. Create a formula for the calculation data cube.

    See Defining and Editing Data Cube Formulas.

See Also

Calculation Data Cubes

Click to jump to parent topicCreating Association Data Cubes

To create an association data cube:

  1. Select Start, Programs, PeopleTools 8.5x, Application Designer to access PeopleSoft Application Designer.

  2. After signing in to the PeopleSoft Application Designer, with an analytic model definition opens, select Part, New, Data Cube.

    The Edit Part Name dialog box appears.

  3. Enter the data cube name.

  4. Click the OK button.

  5. Format the data cube as a member of a dimension.

    This dimension contains the members that the end user will group or categorize. In the application, these members appear in the left-hand column of the data cube's data.

    See Defining General Data Cube Properties.

  6. Attach a different dimension to the data cube.

    This dimension contains the categories by which the end user will group the members of the X dimension. These members appear in the right-hand column of the data cube's data. The end user can select these members from a drop-down list box.

    See Attaching a Dimension to a Data Cube.

See Also

Association Data Cubes

Click to jump to parent topicCreating Virtual Data Cubes

To create a virtual data cube:

  1. Select Start, Programs, PeopleTools 8.5x, Application Designer to access PeopleSoft Application Designer.

  2. After signing in to the PeopleSoft Application Designer, with an analytic model definition opens, select Part, New, Data Cube.

    The Edit Part Name dialog box appears.

  3. Enter the name of the data cube.

  4. Click the OK button.

  5. On the General tab of the data cube's properties, select the Virtual Cube (doesn't store data) check box.

See Also

Virtual Data Cubes

Click to jump to parent topicDefining Data Cube Properties

This section discusses how to:

Click to jump to top of pageClick to jump to parent topicDefining General Data Cube Properties

To define general data cube properties:

  1. Select Start, Programs, PeopleTools 8.5x, Application Designer to access PeopleSoft Application Designer.

  2. After signing in to the PeopleSoft Application Designer, open an analytic model definition.

  3. Select the data cube whose properties you want to define, and then select the General tab.

This is an example of the General tab in PeopleSoft Application Designer–Analytic Model:

Data Cube

Displays the name of the data cube.

Format

Number: Select to format the data cube's values as numbers.

Date: Select to format the data cube's values as a date in the format YYYY-MM-DD. For example, 2004/03/18 for March 18, 2004.

Note. Although the values are saved in the database using this date format, end users can use My Personalizations to select a different display format in PeopleSoft Pure Internet Architecture.

See Defining Your User Personalizations.

Member: Select to format the data cube's values as members of a specified dimension, as part of creating an association data cube.

See Association Data Cubes.

When you select the Member check box, the Dimension drop-down list box appears. Select a dimension for which you want to format the data cube's values as members. For example, you can format a CUSTOMER_ID data cube as a member of the CUSTID dimension.

Note. In the analytic grid, data cubes formatted as members should have a field type of Edit Box.

Text: Select to format the data cube's values as text. This option is useful for entering names, addresses, and other textual data.

Virtual Cube (doesn't store data)

Select to set the data cube as a virtual data cube.

Clear to set the data cube as a nonvirtual data cube.

See Virtual Data Cubes.

Note. A virtual data cube must contain a formula. Selecting this option without entering and accepting a formula for a virtual data cube results in an invalid analytic model.

Calculate Aggregate

Select to enable calculation of the data cube's aggregates.

Note. If Calculate Aggregate is selected for the data cube, the analytic calculation engine initially retrieves the aggregate data from the aggregate record when the analytic instance is loaded, but overwrites this data upon recalculation. If this check box is cleared, values from the aggregate record still load when the analytic instance is loaded; however, these values are not recalculated.

Clear this check box to disable calculation of all of the data cube's aggregates, regardless of specified overrides.

Note. Disabling aggregate calculation for data cubes disables all aggregate calculations, including the default sum aggregation.

See Understanding Override Order of Precedence.

See Also

Understanding the Relationship Between Field Definition Attributes and Data Cube Formats

Click to jump to top of pageClick to jump to parent topicSelecting Aggregate Functions for Attached Dimensions

To select an aggregate function for attached dimensions:

  1. Select Start, Programs, PeopleTools 8.5x, Application Designer to access PeopleSoft Application Designer.

  2. After signing in to the PeopleSoft Application Designer, open an analytic model definition.

  3. Select the data cube for which you want to select an aggregate function, and then select the Dimensions tab.

This is an example of the Dimensions tab in PeopleSoft Application Designer–Analytic Model:

Name

Displays the names of the dimensions that are attached to the data cube.

See Attaching a Dimension to a Data Cube.

Aggregate Function

Select a cube dimension override user function to calculate the aggregates for the dimension as it is attached to the data cube.

See Understanding Override Order of Precedence.

Click to jump to parent topicAuditing Data Cubes at Design Time

This section provides overviews of causes and inputs and of effects and discusses how to:

Note. This section discusses auditing data cubes in design time. Use the Analytic Model Viewer to audit cube collections and data cubes in runtime.

See Viewing and Debugging Cube Collection Properties.

Click to jump to top of pageClick to jump to parent topicUnderstanding Causes and Inputs

Any data cube that affects another data cube is a cause or precedent of that data cube. A data cube can be a direct cause or an indirect cause of another data cube. A direct cause is used in the data cube's formula. An indirect cause is not used in the formula, but it appears somewhere in the chain of formulas that ultimately affect the data cube.

For example, suppose the GROSS_MARGIN and NET_INCOME data cubes contain these formulas:

In this example, SALES is a direct cause of GROSS_MARGIN because it is used in GROSS_MARGIN's formula. SALES is an indirect cause of NET_INCOME because it affects GROSS_MARGIN, which in turn affects NET_INCOME.

You can display the causes of a data cube to view the assumptions behind a result or to find a formula that is not working properly.

Using the All Inputs option, you can also display all of the input data cubes that affect a data cube, either directly or indirectly.

See Displaying Causes and Inputs.

Click to jump to top of pageClick to jump to parent topicUnderstanding Effects

Any data cube that is affected by another data cube is an effect or dependent of that data cube. A data cube can be a direct effect or an indirect effect of another data cube. A direct effect uses the data cube in its formula. An indirect effect does not use the data cube in its formula, but it is part of the chain of calculations that are affected by the data cube.

Again, suppose the GROSS_MARGIN and NET_INCOME data cubes contain these formulas:

GROSS_MARGIN is a direct effect of SALES because it uses SALES in its formula. NET_INCOME is an indirect effect of SALES because it is affected by GROSS_MARGIN, which in turn is affected by SALES.

You can display either the direct or direct plus indirect effects of a data cube to view the consequences of a data cube's values.

See Displaying Effects.

Click to jump to top of pageClick to jump to parent topicDisplaying Causes and Inputs

To display the causes or inputs of a data cube:

  1. Select Start, Programs, PeopleTools 8.5x, Application Designer to access PeopleSoft Application Designer.

  2. After signing in to the PeopleSoft Application Designer, open an analytic model definition.

  3. Select a data cube whose causes or inputs you want to display.

  4. Select Tools, Analytic Model, Causes.

  5. Select one of these options:

  6. Click the Close button when you have finished viewing the causes or inputs.

Note. You can also display causes and inputs by selecting Tools, Analytic Model, Causes and Effects Tool.

See Also

Using the Causes and Effects Tool

Click to jump to top of pageClick to jump to parent topicDisplaying Effects

To display the effects of a data cube:

  1. Select Start, Programs, PeopleTools 8.5x, Application Designer to access PeopleSoft Application Designer.

  2. After signing in to the PeopleSoft Application Designer, open an analytic model definition.

  3. Select a data cube whose effects you want to display.

    To select several data cubes, hold down the Ctrl key and select the data cubes.

  4. Select Tools, Analytic Model, Effects.

  5. Select one of these options:

  6. Click the OK button when you have finished viewing the effects.

Note. You can also display effects by selecting Tools, Analytic Model, Causes and Effects Tool.

See Also

Using the Causes and Effects Tool

Click to jump to top of pageClick to jump to parent topicUsing the Causes and Effects Tool

To use the Causes and Effects Tool option:

  1. Select Start, Programs, PeopleTools 8.5x, Application Designer to access PeopleSoft Application Designer.

  2. After signing in to the PeopleSoft Application Designer, open an analytic model definition.

  3. Select Tools, Analytic Model, Causes and Effects Tool to browse through the cube collections and data cubes of your analytic model to view the causes, effects, and inputs of data cubes.

This is an example of the Causes and Effects Tool dialog box:

Cube Collection

Select the cube collection to display a list of its data cubes.

Note. You can also select <All Cubes> to display a list of all data cubes in the analytic model.

Cubes

Displays the names of the data cubes in the selected cube collection or the analytic model.

Select a data cube to view its causes, inputs, or effects.

To select several data cubes, hold down the Ctrl key and select the data cubes.

Note. You can also audit individual data cubes by selecting the data cube, and then selecting Tools, Analytic Model and the desired audit option from the menu bar.

See Displaying Causes and Inputs, Displaying Effects.