Creating Atomic Metrics
An atomic metric is an abstract set of the statistical logic and specific algorithms. To ensure consistency between definitions and R&D, metric definitions determine the statistical logic (or the computing logic), without using ETLs to perform secondary R&D. This improves R&D efficiency and ensures consistency of statistical results.
Context
Atomic metrics come from fact tables.
- 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 does not have a 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.
- An atomic metric referenced by any derivative metrics cannot be deleted.
- The code of an atomic metric referenced by any derivative metrics can be changed.
- The change of an atomic metric affects related derivative metrics.
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
- On the DataArts Studio console, locate an instance and click Access. On the displayed page, locate a workspace and click DataArts Architecture.
Figure 1 DataArts Architecture
- On the DataArts Architecture page, choose Atomic Metrics tab. in the left navigation pane. On the displayed page, click the
- Select a subject from the subject tree on the left and click Create.
- On the Create Atomic Metric page, set the parameters described in Table 1 and click Publish.
Figure 2 Creating an atomic metric
Table 1 Parameters for creating an atomic metric Parameter
Description
*Metric Name
Metric names must start with letters. Only letters, numbers, and underscores (_) are allowed.
*Metric Code
Metric codes must start with letters. Only letters, numbers, and underscores (_) are allowed.
*Data Table
Select a published fact table from the drop-down list box. If there are many tables, you can enter a table name in the text box to search for the desired fact table. If no fact table is available, create one. See Creating and Publishing a Fact Table.
*Subject
The subject to which the 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 create. Up to 600 characters are supported.
- In the dialog box displayed, select a reviewer and click OK.
- (Optional) Create and publish other atomic metrics by repeating 3 to 5.
- Wait for the reviewer to approve the application.
After the application is approved, the atomic metric is created.
Managing an Atomic Metric
- On the DataArts Architecture page, choose Atomic Metrics tab.
Figure 3 Managing an atomic metric
in the left navigation pane. On the displayed page, click the - Manage your atomic metrics as required. Refer to the following table for details.
- Edit an atomic metric.
- Click Edit to the right of the target atomic metric.
- On the page displayed, edit the atomic metric as required.
- Click Publish. If you do not want to immediately publish the atomic metric that you edited, click Save and you can publish it later.
- Publish an atomic metric.
- Click Publish to the right of the target atomic metric.
- In the Submit for Publication dialog box displayed, select a reviewer from the drop-down list box.
- Click OK.
- View the publish history.
- Select the target atomic metric in the list and choose .
- On the History tab 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 target atomic metric.
- In the Submit for Suspension dialog box displayed, select a reviewer from the drop-down list box.
- Click OK.
Atomic metrics cannot be suspended or deleted if they are referenced by any derivative metrics.
- Delete an atomic metric.
- Select the target atomic metric and choose in the upper left corner.
- In the dialog box displayed, confirm the information and click Yes.
- Import
You can import atomic metrics to the system quickly.
- Above the atomic metric list, choose More > Import.
Figure 4 Importing atomic metrics
- Download the atomic metric template, and edit and save it.
- Choose whether to update existing data.
If a code in the template already exists in the system, the data is considered duplicate.
- No: If the data to be imported already exists in the system, the existing data in the system will not be replaced.
- Yes: If the data to be imported already exists in the system:
- If the existing data in the system is in draft state, the data will be replaced and new draft data will be generated.
- If the existing data in the system is in published state, expanded data will be generated.
- Click Select File and select the edited template to import.
- Click Upload. When the template is uploaded, the Last Import page is displayed. You can view the imported data.
- Click Close.
- Above the atomic metric list, choose More > Import.
- Export atomic metrics.
You can export atomic metrics to a local file.
- In the atomic metric list, select the metric to be exported.
- Above the atomic metric list, choose More > Export.
- You can export all the atomic metrics of a subject by selecting the subject in the subject list on the left.
- You can export all the atomic metrics of a workspace, as long as there are no more than 500 atomic metrics in the workspace.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.