Using derived metrics in documents

A derived metric calculates data and displays results dynamically by using at least one of the metrics in the document. Derived metrics add a dynamic application of calculations to a document without requiring new metric definitions.

For example, if your dataset contains the dollar sales for a particular region, and you want to view the same data in millions, you could create a derived metric with a definition of [Dollar Sales]/1000000.

A derived metric:

Note: You can only use metrics already existing in a single dataset to create a derived metric. If the new definition demands metric data not readily available, the information cannot be obtained dynamically, as the dataset must first be re-executed.

When you create a derived metric, it is added to the Dataset Objects pane but is not placed on the document. You can add it to the document just as you would any other dataset object. You can also use it in conditional formatting expressions. However, if you select a Grid/Graph object before creating the derived metric, the metric is added to the Grid/Graph as well as placed in the Dataset Objects for future use.

To create a derived metric in a document

  1. Open the document in Design Mode or Editable Mode.

  2. Do one of the following:

  3. Note: All metrics used in a derived metric must be from the same dataset.

  1. The Available pane on the left displays objects in the selected dataset. Select the first object to use to define the derived metric and click the > icon. This moves the object to the Definition pane on the right.

  2. Add a function or operator in one of the following ways:

  3. Select additional objects to define the metric and add them to the Definition pane, or enter a constant.

  4. Click Apply. If necessary, modify the expression until it is valid.

  5. In the Name field, type a name for the new metric.

  6. Click OK to apply the new metric to your document. The new metric is added to the appropriate dataset in Dataset Objects. If you selected a Grid/Graph before creating the metric, it is also added to that Grid/Graph.

You can now use the derived metric as you would any other dataset object. You can drag and drop it from the Dataset Objects to the Layout area to place it into the document.

To edit a derived metric

    1.  

  1. Right-click the derived metric in Dataset Objects and select Edit. The Rename/Edit Objects dialog box opens.

  2. Apply any changes you want to make to the metric. You can refer to the previous procedure to make changes in the metric.

To delete a derived metric

    1.  

  1. Open the document in Design or Editable Mode.

  2. Right-click the derived metric in Dataset Objects and select Delete From Document.

Related topics