Create a Reference Date Variable

Add a reference date variable to your analytic model.

Context

When the analytic model has associations to a time-dependent dimension or text table, you can define a reference date variable. With a reference data variable, you can filter the data using a specific date. This allows SAP Analytics Cloud users to enter a date of their choice for their story and show dimension members based on that date. For more information on time-dependent dimensions, see Enable Time-Dependency for a Dimension or Text Entity.

Procedure

  1. You are in the editor of your analytic model. You can create a new reference date variable by clicking the background of the canvas and choosing Add Variable in the properties panel. Choose Standard Variable.
  2. Edit the following properties:

    Property

    Description

    Business Name

    Enter a descriptive name to help users identify the object. This name can be changed at any time.

    Technical Name

    Displays the name used in scripts and code, synchronized by default with the Business Name.

    To override the default technical name, enter a new one in the field. Technical names can contain only alphanumeric characters and underscores.
  3. Define the properties of your variable:

    Property

    Description

    Sub Type

    Choose sub type Reference Date.

    Data Type

    Select the data type.

    Variable filled by

    Choose how the variable should be filled:
    • Manual Input

    • Derive Value: Derived variables are hidden in the data preview or in an SAP Analytics Cloud story. See Derived Variables.

    • Dynamic Default: You get a derived value in the parameter dialog list when opening the analytic preview, and in the variable prompt for an SAP Analytics Cloud story. See Dynamic Default.

    Properties for derive value

    If you want to derive the value, you need to
    1. Define a lookup entity (a view).

    2. Select the column from which the value is to be derived.

    3. Map the parameter of the lookup entity. If it has no input parameter, you can set a constant value or create a standard variable.

    For more information, see Derived Variables.