<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
- [Metric Management](#metric-management)
- [Difference Between Metrics and Fields](#difference-between-metrics-and-fields)
- [Create a New Metric](#create-a-new-metric)
- [Edit Alias](#edit-alias)
- [Edit Metric](#edit-metric)
- [Delete Metric](#delete-metric)
- [Duplicate Metric](#duplicate-metric)
- [Display Format](#display-format)
- [Use Metrics](#use-metrics)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
# Metric Management
HENGSHI SENSE 3.0 has introduced a centralized metric management system. Open the dataset and click the `Metric Management` tab to go to the metric management page.

## Difference Between Metrics and Fields
Fields are used to process detailed data, calculating and generating new fields row by row from the original table.
Fields are appropriate for various segmentation scenarios, such as creating segments for age groups, or consumer spending levels.
Metrics, on the other hand, are used to process grouped data as a whole. Metrics themselves do not hold any grouping significance, and are stored not as specific calculated values, but rather as aggregate calculation expressions. Metrics only take effect when plotting and dynamically perform aggregate calculations based on the selected dimensions.
The use of metrics is fairly flexible and suitable for different scenarios depending on the dimensions chosen. Metrics can be used when calculating per capita, daily average, year-over-year, and quarter-over-quarter comparisons.
## Create a New Metric
Click `Create a New Metric` in the top right corner to open the new metric creation page.
Enter the metric alias, input the aggregate expression, then click `Save` to successfully create the metric.

## Edit Alias
Click the edit icon next to the alias to directly edit the metric name.
## Edit Metric
On the metric list page, click an edit icon for a metric to open the edit metric page. The edit metric page is identical to the new metric creation page.

## Delete Metric
Select a metric and click the delete icon, then confirm to delete the metric.
If the metric has been referenced, a prompt will appear during deletion. You can choose to force delete or cancel the operation.
## Duplicate Metric
Click the copy icon in the actions to duplicate the current metric into a new one.
## Display Format
You can set the display format for numeric metrics, which will automatically apply this format when the metric is used in charts.

## Use Metrics
In charts, you can drag metrics into measures or filters, but metrics cannot be dragged into dimensions.
