Create a statistical period

Updated at:

A statistical period defines a time range for data analysis, such as the last 7 days or the last 30 days. This topic describes how to create a statistical period.

Prerequisites

  • The statistical period feature requires the Intelligent R&D Edition or Asset Operation Advanced Edition.

  • The compute engine type must be configured. For more information, see Compute Settings. After you configure the compute engine, the system automatically initializes a set of default statistical periods.

Required permissions

Only a super administrator or system administrator can create statistical periods.

Procedure

  1. In the top navigation bar of the Dataphin homepage, choose Plan > Common Definitions.

  2. On the Common Definitions page, click + Create Statistical Period.

  3. In the Create Statistical Period dialog box, configure the parameters.

    Parameter

    Description

    Statistical period

    The name can contain Chinese characters, letters, digits, underscores (_), and hyphens (-).

    Note

    The name cannot exceed 64 characters.

    Abbreviation

    The English abbreviation can contain letters, digits, and underscores (_).

    Note

    The abbreviation cannot exceed 64 characters.

    Time granularity

    The available options are Day, Hour, or Minute.

    Description

    A description of the statistical period, limited to 128 characters.

    Compute expression

    The compute expression for the statistical period. For configuration details, see Appendix: Statistical period expression parameters.

    Calendar

    When the time granularity is set to Day, you can configure the calendar type. Supported options include Regular Calendar and Fiscal Calendar.

    If you select Fiscal Calendar, the output dates for cBeginDate, cEndDate, and tdBeginDate are based on the period settings of the selected fiscal calendar.

    Start time

    Configure the start time for the statistical period:

    • Select Parameter and enter the parameter expression.

    • Select Function Expression, click the fagaga icon, and select a function from the drop-down list. The system automatically populates the corresponding expression.

    End time

    Configure the end time for the statistical period:

    • Select Parameter and enter the parameter expression.

    • Select Function Expression, click the fagaga icon, and select a function from the drop-down list. The system automatically populates the corresponding expression.

    Note
    • You cannot create a statistical period with the same start time and end time as an existing one.

    • You cannot use a statistical period name or an abbreviation that is already in use.

  4. Click OK to create the statistical period.