All Products
Search
Document Center

Dataphin:Step 3: Develop atomic metrics

Last Updated:Jan 21, 2025

This topic outlines the process for developing the Total Order Amount atomic metric, as demonstrated in this tutorial.

Procedure

  1. Navigate to the Dataphin home page and single click the Develop option on the top menu bar.

  2. Use the operation guide depicted below to access the Create Atomic Metric dialog box.

    image.png

  3. Within the Create Atomic Metric dialog box, proceed to configure the necessary parameters.

    1. Start by configuring parameters in the Basic Information section.

      Parameter

      Description

      Business Entity

      Choose the Order Placement Business entity.

      Data Domain

      The default is set to Transaction Domain.

      English Name

      Input total_order_amount as the English name.

      Chinese Name

      Enter Total Order Amount as the Chinese name.

      Measurement Unit

      Select Yuan (RMB) as the unit of measurement.

      Data Type

      Choose decimal for the data type.

      Description

      Provide a concise description of the atomic metric, such as Total Order Amount.

    2. Continue with configuring parameters in the Computation Logic section.

      Parameter

      Description

      Data Timeliness

      Activate Day for data timeliness.

      Main Source Table

      Identify LD_dataphin_tutorial.fct_order_buy_di as the main source table.

      Computation Logic

      Input the computation logic for the atomic metric.

      sum(fct_order_buy_di.payment_amount)

      Is Cumulative

      Opt for Yes if the metric is cumulative.

    3. Upon completing the configuration, single click Save And Submit to finalize the atomic metric.