Creating a Fact Model

Fact models are reusable models you can use to streamline the creation of other models within the same business context.

Prerequisites

To create fact models, you must have a scoped role that grants you access to a space with the following privileges:
  • Data Warehouse General (-R------) - To access SAP Datasphere.

  • Data Warehouse Business Builder (CRUD----) - To create, edit, and delete Business Builder objects.

  • Data Warehouse Fact Model (CRUD----) - To create, edit, and delete Business Builder fact models.

  • Space Files (CRUD----) - To create, read, update, and delete objects in your spaces.

The DW Modeler role template, for example, grants these privileges. For more information, see Privileges and Permissions and Standard Roles Delivered with SAP Datasphere.

You already have analytical datasets, dimensions, or fact models defined.

Context

Fact models let you predefine an array of measures, attributes, and filters that are relevant to a specific business context. Fact models can then be reused in several use cases within that business context.

As an example, you have five consumption models that require the same ten calculated attributes. Instead of defining each of the ten calculated attributes five times, you can create a single fact model that includes those calculated attributes you need and reuse it in each consumption model where it's relevant.

Procedure

  1. In the side navigation area, select (Business Builder), select a space if necessary, and select New Fact Model to open the editor.
  2. Enter a title for your fact model.
  3. Choose the initial fact source you want to use in your fact model: you can choose analytical datasets, dimensions or fact models.
  4. Enter an alias for your initial fact source and click Create.

    At this point, your fact model is ready to use. You can also choose to include or remove measures and attributes relevant to several use cases within a same business context.

  5. [optional] Select the package to which the object belongs.
    Packages are used to group related objects in order to facilitate their transport between tenants. For more information, see Creating Packages to Export.
  6. Define the Measures of your fact model. For more information, see Define Measures.
  7. Define the Attributes of your fact model. For more information see Define Attributes.
  8. Define the Dimension Sources which should be exposed for consumption. For more information see Expose Dimension Sources.
  9. Define the Filters of your fact model. For more information see Define Filters.