Creating Atomic Metrics
An atomic metric is an abstract set of the statistical logic and specific algorithms. To solve the inconsistency problem between definitions and R&D, metric definitions determine the statistical logic (or the computing logic), without using ETLs to perform secondary R&D, which improves the R&D efficiency and ensures the consistency of statistical results.
Context
Atomic metrics come from the fact table.
- An atomic metric is a data component defined for constructing a derivative metric required by application statistical analysis. An atomic metric can only be created based on fact table details.
- A derivative metric has no direct source table. It belongs to the source table of the original atomic metrics that are combined into the derivative metric
Atomic metrics and derivative metrics interact in specific ways:
- After the computing logic of an atomic metric takes effect, the related derivative metric is updated directly.
- If an atomic metric is deleted, check whether a derivative metric is used in later steps. If it is, the atomic metric cannot be deleted.
- Currently, the code of an atomic metric can be changed when the atomic metric is used by the later steps.
- If an atomic metric is changed, the related derivative metric will be affected.
Prerequisites
- You have created and published a fact table, and the fact table has been approved. For details, see Creating Fact Tables.
Creating and Publishing an Atomic Metric
- Log in to the DGC console, select a DGC instance, and click Access.
On the displayed page, click the Workspaces tab. In the workspace list, locate the required workspace.
- Click Data Design of the corresponding workspace to access the Data Design console.
- Choose Technical Metrics from the left navigation bar and click the Atomic Metrics tab.
- Select a subject from the subject tree on the left and click Create.
- On the Create Atomic Metric page, set parameters described in Table 1 and click Save and Publish. Figure 1 Creating an atomic metric
Table 1 Parameters for creating atomic metrics Parameter
Description
Name
Only letters, digits, and underscores (_) are allowed. Metric names must start with letters.
Code
Only letters, digits, and underscores (_) are allowed. Metric codes must start with letters.
Data Table
Select a published fact table from the drop-down list. If there are many tables, you can enter a table name in the text box to search for the fact table you want. If you have not created a fact table, create one. See Creating and Publishing a Fact Table.
Subject
The subject to which an atomic metric belongs. After a fact table is selected, the information about the subject to which the fact table belongs is automatically displayed. You can also click Select to select a subject.
Set Expression
Select the required functions and fields and set the expression.
Description
A description of the atomic metric to be created. Up to 600 characters are supported.
- In the dialog box that is displayed, select a reviewer and click Confirm.
- (Optional) Publish other atomic metrics by repeating steps 4 to 6.
- Wait for the reviewer to approve the application.
After the application is approved, the atomic metric is created.
Managing an Atomic Metric
- Click Technical Metrics in the navigation tree on the left and click the Atomic Metrics tab. Figure 2 Managing an atomic metric
- Manage your atomic metrics as required. Refer to the following table for details.
- Edit an atomic metric.
- Click Edit to the right of the atomic metric you want to edit. The Edit Atomic Metric page is displayed.
- Edit the atomic metric as required.
- Click Save and Publish. If you do not want to immediately publish the atomic metric you edited, click Save and you can publish it later.
- Publish an atomic metric.
- Click Publish to the right of the atomic metric you want to publish. The Submit for Publishing dialog box is displayed.
- Select a reviewer from the drop-down list.
- Click Confirm.
- View the publish history.
- Select an atomic metric in the list and choose More > View Publish History.
- On the displayed page, you can view the publish history and version comparison information of the metric.
- Suspend an atomic metric.
- Click Suspend to the right of the atomic metric you want to suspend. The Submit for Suspension dialog box is displayed.
- Select a reviewer from the drop-down list.
- Click Confirm.
An atomic metric cannot be suspended or deleted if it is referenced to any derivative metrics.
- Delete an atomic metric.
- Select an atomic metric you want to delete and click Delete in the upper left corner. The Delete Atomic Metric dialog box is displayed.
- Click OK.
Last Article: Technical Metrics
Next Article: Creating Time Filters
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.