You are on page 1of 2

Metrics:

The Aggregation of Fact or Attribute is referred to as Metric.


By Default the Aggregation for fact is Sum (Fact)
By Default the Aggregation for Attribute is Count (Attribute)
Types of Metrics
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.

Simple Metric
Compound Metric
Compound Smart Metric
Transformation Metric
Derived Metric
Nested Metric
Conditional Metric
Level Metric
Non-Aggregative Metric
Rank Metric
N-Tile Metric

Components of Metric: 4 Components

1) Simple Metric

The formula of a simple metric is a mathematical expression based on at least one group
function, such as sum or average, which is applied to facts, attributes, or other metrics.
It can also contain non-group functions or arithmetic operators, in addition to the required
group function.
An example of the formula of a simple metric is Sum(Profit)
Another example is Avg((Cost + Profit)). The formula contains two group functions, Avg
(which stands for average) and Sum.

2)Compound Metric:

When we Perform Arithmetic operation between 2 or more metrics then it is called as


Compound Metric.
The formula of a compound metric is based on arithmetic operators and non-group
functions. Arithmetic operators are +, -, *, and /; non-group functions are OLAP and scalar
functions such as running sum or rank. The operators and functions can be applied to facts,
attributes, or metrics.
An example of the formula of a compound metric is RunningAvg(Cost)
where Cost is a metric. The formula contains a non-group function, RunningAvg
(which stands for running average).
Another example is Sum(Cost) + Sum(Profit)
where Cost and Profit are metrics. The addition expression, denoted by the + operator, makes this
a compound metric.
Sum(m1/m2)
3) Compound Smart Metric
When Compound metric is calculated with the help of Subtotal Calculations for every element
inside the compound metric it is Compound Smart Metric.
Sum(m1)/sum(m2)
4) Transformation Metric
Transformations are used to perform Time series analysis.
For eg; Current year to last year profit
Current year revenue to last year Revenue
Current quarter revenue to last quarter Revenue
5) Derived Metric
Metric which is created inside the report is called as derived metric.
Metric is created based on existing Report objects.
Metric cant be created outside the report.
6)Conditional Metric
If we apply any condition /any Filter on ametric then such a Metric is called Conditional Metric.
7)Non-Aggregative Metric:
This Metric is used in Solving Percentage Calculations
8)Nested Metric:
When we apply Column Functions or Aggregate functions or group functions on a metric such a metric is
called as Nested Metric.
Rank Metric:Rank function is used to assign the values based on Metric value.

You might also like