Create a Stand-Alone Metric

Starting in Strategy (August 2026), you can create metrics in Library.

You can create and add metrics to a Strategy project to perform calculations on your business data. Metrics represent business measures and key performance indicators. Use these metrics on reports, documents, and dashboards to analyze your data.

To create a metric, you define the metric's formula, which consists of the following:

  • Function: The calculation applied to your business data, such as Sum or Count. Your metric may contain multiple functions.
  • Expression: The business data from your data source. The expression can contain business facts, attributes, or other metrics.

You can create simple metrics such as summing the sales figures or more complex ones that use non-group functions such as running sum, custom expressions such as percent-to-total metrics, levels, filters, and transformations. You can also create nested metrics, which contain multiple layers of functions.

For more background information about metrics, see:

Stand-Alone Vs. Derived Metrics

This topic discusses stand-alone metric objects. You can also create derived metrics within reports, dashboards, and documents. They are not saved as separate objects. See: 

Prerequisites

You must have the Web Use Metric Editor privilege.

Create a Metric

  1. In Library, click Create New , point to Objects, then select Metric.
    • To edit an existing metric instead, find the metric and double-click it. You can search for the metric or navigate to it using browse folders.

  2. If you are connected to multiple projects, select the project to create the metric in and click OK.

  3. Click the metric Name, type a new name, and press Enter.

  4. Choose a data type for the metric in the Data Type drop-down list, or leave it as Default.

    • Some data types allow you to format them. For example, if you choose Binary, you can set the Byte Length; if you select Decimal you can set the Precision and Scale. When formatting is available, the More Settings (three dots) icon becomes available. Click it to set the formatting.

  5. Type a Description for the metric.

    You can type the metric formula in the Formula pane or use the Objects pane and the Functions pane for a more guided experience. Steps for each method are provided below.

    Use the guided experience

  6. Click the Functions pane to search for and select a function.

    • To locate a function, type its name in the Search box.

    • You can also browse for a function by selecting a function category (such as Basic Functions or String Functions) from the drop-down list.

    • When you select a function, its description and syntax display at the bottom of the Functions pane.

    • Double-click a function to add it to the Formula pane. When you add a function, its syntax and description display in a pop-up, as shown below. You can copy and paste the parameter syntax (such as <Tiles, Ascending, BreakBy> in the image shown below) into the Formula pane and edit them. Use the example and the Details link displayed at the bottom of the Functions pane for assistance. Some parameters are also automatically filled in when you validate the formula.

  7. Click Objects and use the pane to search for and select the object to use in the expression. The object can be a base formula, which is a re-usable metric definition you create in Workstation.

    • To locate an object, type its name in the Search box.

    • You can also browse for an object by using the drop-down list and folders.

    • Double-click an object to add it to the Formula pane.

    Type the metric formula

  8. Type the metric formula in the Formula pane on the left. The formula consists of arithmetic operators (+, -, *, and /) and functions such as Average, Rate, and MonthEndDate. The operators and functions are applied to attributes, facts, or metrics. As you type, matching objects, such as functions, attributes, facts, metrics, and base formulas, display in a drop-down list. To add an object to the metric, do one of the following:
    • To add an object from the list, select the object's name.
    • When you select a function, its syntax and description display in a pop-up. You can copy and paste the parameter syntax into the Formula pane and edit them. Use the example and the Details link displayed at the bottom of the Functions pane for assistance. Some parameters are also automatically filled in when you validate the formula.
    • You can add a level prompt to the formula. A level prompt allows the user to select, during report execution, the level of calculation (or dimensionality) for a metric. Type ? to indicate you're using a prompt. Type { to indicate the start of the level information. Start typing the name of the prompt and select it from the list of suggestions. Type } to end the level information.
  9. Continue creating the metric

  10. Click Validate to check the formula and automatically fill in some parameters and the report level. In the example below, information about the level displays between curly braces {}. This indicates that the formula uses the report level with standard filtering and standard aggregation.

  11. You can edit the parameters that have been added. For example, you added the NTile function and the Revenue metric then clicked Validate. The parameters for the number of tiles and whether the values are sorted in ascending or descending order are automatically added, as shown below. You can edit the number of tiles and change Ascending to be false.

  12. If it is not a valid expression, check and repair the formula's syntax.

  13. Click OK to save the formula and enable the other tabs such as Breakdown.

  14. You can further define the metric by adding a level, condition, and/or transformation. Click Breakdown then:
    • To define the attribute level to evaluate the metric at, add a level to the metric. A level metric can calculate regional revenue values, even if the report displays the City attribute. Use the regional metric in a contribution metric to calculate how much each city contributes to total regional revenue.

    • To filter the data included in the metric, add a condition to the metric. For example, a conditional metric calculates revenue for a specific region or time frame.

    • To apply offset values such as "four months ago" to a metric, you add a transformation.

  15. You can format the metric's column headers and values. For steps, see Formatting Metrics.

  16. You can set a variety of options, including selecting the functions that can be used to total the metric on a report, selecting the dynamic aggregation function, specifying joins, and setting VLDB properties such as null checking. For steps, see Applying Metric Options.

  17. Save the Metric

  18. Choose one of the following:
    • To save the metric and continue editing it, click Save.
    • To save the metric and exit the Metric Editor, click Save and select Save and Close.
    • To save the metric and create another metric, click Save and select Save and New.
  19. Navigate to the folder to save the metric in.

  20. Optionally type a description in User Comments and click OK.

  21. Optionally, you can add a User Comment to describe the metric or its changes.

  22. Click Save.

Once you have created a metric, you can add the metric to a report or dashboard to analyze your data. You also use metrics when creating filters in Workstationand and prompts (see Create an Object Prompt to Select Objects to Display on a Report and Create a Value Prompt to Select a Single Value).

Related Topics