For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
Create a metric
This page hasn't yet been translated into your language. We're working on it, so check back soon.
Amplitude Academy
Track Business Goals with Metrics
Create reusable building blocks that help analysts and teams define key behaviors, conversions, and outcomes in a consistent, scalable way
Get startedMetrics are reusable analysis objects that standardize measurements across Amplitude charts. Create a metric when you want to reuse a measurement in multiple analyses. Define the measurement directly in a chart instead when you only need it once. Amplitude shares metrics project-wide, and any member, manager, or admin can create them. Only managers and admins can mark a metric as official.
Create and configure a new metric
To create and configure a metric for use in Event Segmentation charts or Data Tables:
- Go to where you add an event to your analysis. Open the Metrics tab and click + Define new Metric.
- In the modal, specify the metric type to create. Both chart types support Event Segmentation, Revenue, and Formula metrics. Data Tables also support Funnels. Data Tables and Metric Explorer support Hybrid Formula metrics.
For more information about custom formulas, refer to Custom formulas in Amplitude Analytics. For Hybrid Formulas that combine event and session inputs, refer to Hybrid Formulas.
- Add the events and properties you want.
- Give the metric a unique name. You can also add a description to explain the metric to your team, and verify (or "officiate") the metric.
Only project managers and admins can verify metrics.
- Click Save to add the metric to your analysis.
After you add a metric, you can edit or remove it. In a Data Table, click More Options in the metric header. In an Event Segmentation chart, click View Metric in the flyout panel to edit the metric. Remove a metric from an Event Segmentation chart the same way you remove an event.
To delete a metric from the project, click Edit metric, then Delete, in the metric drawer. Only Amplitude users with the Administrator role can delete metrics they don't own.
For event total metrics in Data Tables, click the settings gear next to the date picker to switch between absolute numbers, relative percentage of total, or both.
Calculate relative percentage of total
Syntax
Relative % of Total = (Row Metric Total / Displayed Table Grand Total) * 100
Parameters
| Parameter | Description |
|---|---|
Row Metric Total | The metric total for that individual row. |
Displayed Table Grand Total | The sum of the metric across every row in the current Data Table view. |
Returns
The row's share of the current table view, expressed as a percentage.
The numerator is the row's own metric total. The denominator is the grand total for the current table view, not the total across your entire unfiltered dataset.
For example, consider a Data Table with a grand total of 1,000 events across its rows:
| Row | Absolute Count | Relative % of Total |
|---|---|---|
| Segment A | 300 | 300 / 1,000 = 30% |
| Segment B | 500 | 500 / 1,000 = 50% |
| Segment C | 200 | 200 / 1,000 = 20% |
The three rows' relative percentages sum to 100%, matching the displayed grand total.
The current table view determines the denominator
Applying filters or changing column groupings changes which rows appear in the Data Table and the grand total used as the denominator. Relative percentages always recalculate from the visible, filtered, or grouped result set, not your entire unfiltered dataset.
Was this helpful?