Creating a metric

Metrics are calculations performed against the data in the data warehouse. Metrics represent business measures and key performance indicators. For a brief overview of metrics, see About metrics.

The easiest way to create a metric is to use a metric template. A metric template helps you create certain types of metrics. For steps, see Creating a metric using a template below.

You can also create a metric from scratch. You can apply levels, conditions, and transformations, or any combination. You can use grouping functions (such as Sum and Average) or non-grouping functions (such as Rank and NTile). To do this, you use the Function Editor, which helps guide you through the process. For steps, see Creating a metric from scratch below.

A more advanced user can create the metric by typing the metric formula. To do this, you use the Formula Editor, which also allows you to create a compound metric (which combines multiple metrics, such as Net Sales - Profit) and build custom expressions such as percent-to-total. For steps, see Metric Formula Editor.

Creating a metric using a template

Depending on the template that you select, certain components are predefined, while you must define others. Before you save the metric, you must ensure that the following components are defined:

Function: The calculation applied to the data

Expression: The business data from your data source

For example, the Condition template allows you to create a conditional metric, which is a metric with a filter (also known as a condition). A conditional metric allows you to apply a filter to only one metric on a report while not affecting the other metrics. The Condition template automatically selects Sum as the metric's function, and also opens the Condition area so that you can quickly select the filter to apply to the metric. You only have to select which fact to sum (this is the metric expression), as well as the filter, to create the metric. You can of course change the metric function, rather than accepting the default of Sum.

 

To create a metric using a template:

  1. Navigate to the Shared Reports or My Reports folder or to the Search page.

  2. From the icon bar, click the Create Metric icon. This displays the Select a Function or Template dialog box.

  3. From the drop-down list, select Metric Templates.

  4. From the list, select the metric template to use.

  5. Click OK. This displays the Function Editor.

  6. Depending on the template that you selected, certain components are predefined. You must define the following components before you can save the metric:

  7. Click Save to save your changes. This displays the Save As dialog box.

  8. Navigate to the folder where you want to save the metric. Enter a Name and Description for the metric, and click OK. Your new metric is saved, and you are returned to the Function Editor.

Creating a metric from scratch

When you create a metric, you select the mathematical function. You then define the following information, depending on the type of function that you selected:

To create a metric from scratch:

The steps listed below provide a high-level outline to creating a metric from scratch. Before you begin, you should know what you want the metric to calculate, and the type of function to use.

  1. Navigate to the Shared Reports or My Reports folder or to the Search page.

  2. From the icon bar, click the Create Metric icon. This displays the Select a Function or Template dialog box.

  3. Select a function by doing one of the following:

  4. When you select a function, a description of the function is displayed at the bottom of the interface. Click Details to view more information, such as syntax and examples.  

  5. Click OK to add the function to the metric. The Function Editor opens.

  6. You can format the metric header and the metric values. Formatting includes how numeric values are displayed, font styles and sizes, and cell display colors. This formatting is used for the particular metric, regardless of the report on which it is placed. For steps, see Format Metric dialog box.

  7. You can select the functions that can be used to total the metric on a report. For steps, see Advanced Metric Options dialog box: Subtotals.

  8. You can select the function used for dynamic aggregation, which is the rollup of metric values that occurs when an attribute is moved from the report grid to the Report Objects. For steps, see Advanced Metric Options dialog box: General.

  9. Click Save to save your changes. This displays the Save As dialog box.

  10. Navigate to the folder where you want to save the metric. Type a Name and Description for the metric, and click OK. Your new metric is saved, and you are returned to the Function Editor.

Related topics

About metrics for a brief overview of metrics

Format Metric dialog box for steps to format a metric

Advanced Metric Options dialog box for descriptions of advanced metric settings, such as dynamic aggregation and subtotal functions, VLDB properties, metric aliases, and the metric join type

 

 

_____________________________