Atomic metrics are created based on business activities that are performed by users. Business activities are also known as business processes. You can use atomic metrics to perform statistical analysis on business activities. Each atomic metric defines a criterion and a computing logic for the statistical analysis of a business activity. For example, you can create an atomic metric payment amount to perform statistical analysis on a purchase business activity. This topic describes how to create an atomic metric.

Prerequisites

A business process is created. The business process is used to determine the business activity on which statistical analysis needs to be performed. For more information about how to create a business process, see Business process.

Background information

Metrics collect statistics on the business characteristics of an enterprise. A metric reflects the status of a business activity. Metrics are classified into atomic metrics and derived metrics. Derived metrics are related to modifiers and periods. A derived metric is composed of an atomic metric, a period, and one or more modifiers. Derived metric
  • An atomic metric determines a criterion and a computing logic for the statistical analysis of a business activity. For example, you can use the total number of orders as an atomic metric.
  • A modifier defines the scope of a business activity. For example, you can use online fresh shops and offline fresh shops as modifiers.
    Note A derived metric can contain one or more modifiers.
  • A period defines the time range within which you want to collect statistics. For example, you can use a calendar day as a period.
  • A derived metric is composed of an atomic metric, a period, and one or more modifiers. A derived metric is used to collect statistics on the values of an atomic metric within a specific period based on specific dimensions and business conditions. A derived metric reflects the status of a business activity of an enterprise. For example, you can create a derived metric to collect statistics on the total number of orders that are placed in online fresh shops on a calendar day or the total number of orders that are placed in online and offline fresh shops on a calendar day.

Create an atomic metric

  1. Go to the Dimensional Modeling page.
  2. In the top navigation bar of the Dimensional Modeling page, click Data Metric. In the left-side navigation pane of the Data Metric page, click Atomic Metric to go to the Atomic Metric page.
  3. Create an atomic metric.
    Atomic metrics
    1. Select a business process.
      Atomic metrics are created based on business processes. The left-side navigation tree of the Data Metric page displays the data domains that you create and the business processes in the data domains. You can select a business process based on your business activity and create an atomic metric that can be used to collect statistics on the business activity.
    2. Click the Create icon to create an atomic metric.
      You can also move the pointer over the desired business process and click the Create icon. The atomic metrics that are created in the business process are displayed. Then, you can click Create to create an atomic metric.
  4. Configure the atomic metric.
    1. Configure basic information for the atomic metric.
      Basic Information
      Parameter Description
      Business Process The business process to which the atomic metric belongs.
      Abbreviation The abbreviation of the atomic metric name. The abbreviation is the unique identifier of the metric and cannot be modified after the metric is created.

      The abbreviation can contain lowercase letters, digits, and underscores (_) and must start with a lowercase letter or digit.

      Name The name of the atomic metric.

      We recommend that you use a name that can help you quickly identify the type of statistics that the atomic metric collects.

      The name can contain letters, digits, underscores (_), and ampersands (&) and must start with a letter or digit.

      Display Name The display name of the atomic metric.

      We recommend that you use a name that can help you quickly identify the type of statistics that the atomic metric collects.

      The display name can contain letters, digits, underscores (_), ampersands (&), and parentheses () and must start with a letter or digit.

      Effective Scope The statistical criterion of the atomic metric. This parameter helps prevent misunderstanding of the atomic metric.

      For example, if you create an atomic metric payment amount for the business process order placing, the statistical criterion of the atomic metric can be the total amount paid by users by using different payment methods after the users place orders and coupons are deducted.

      Description The description of the atomic metric.
    2. Configure computing logic for the atomic metric.
      The computing logic defines the computing method and measurement unit used for the atomic metric in subsequent operations. You must write computing code for the atomic metric based on the computing logic.
      Computing Logic
      Parameter Description
      Function
      • Summation (SUM)
      • Count (COUNT)
      • Average (AVG)
      • Maximum (MAX)
      • Minimum (MIN)
      • Rate
      • Ranking
      • Others
      Decimal Places The number of decimal places after the decimal point. The number of decimal places is determined based on the measurement unit that you specify. For example, if you want to collect statistics on payment amount and you set Data Unit to Yuan (RMB), the value of this parameter is 2.
      Data Unit The measurement unit that is determined based on the type of statistics needs to be collected. For example, if you want to collect statistics on payment amount, you can set this parameter to Currency Unit. If the measurement units that are provided do not meet your business requirements, you can create the desired measurement unit. For more information, see Measurement unit.
      Deduplication Specifies whether to remove duplicate data during statistics collection. For example, if you create an atomic metric to collect statistics on the number of VIPs, you must set this parameter to Yes to remove duplicate data.
  5. Click Save in the upper-left corner of the configuration tab. The atomic metric is created.

What to do next

You can reference the created atomic metric, a period, and one or more modifiers when you create a derived metric. The derived metric can be used to collect statistics on the values of the atomic metric within a specific period based on specific dimensions and business conditions. If you want to delete an atomic metric that is referenced by derived metrics, you must delete all the derived metrics. Then, you can delete the atomic metric. For more information about how to reference an atomic metric when you create a derived metric, see Derived metric.