# OBIEE 10G/11G - Measures (Columns|Attributes)

A measure column is a logical column with an aggregate function. Any column with an aggregation rule is a measure. Examples include Revenue or Units Sold.

Measures need to be defined in a logical fact.

OBIEE offers two levels of measures calculation in the repository:

When the logical column has no aggregation rule, it's called a baseline column.

## 3 - What is a measure column ?

A measure column is a column unlike the baseline column that has an aggregation rule defined in the Aggregation tab of the Logical Column dialog in the repository.

Measure columns always calculate the aggregation with which they are defined.

Measures need to be defined in a logical fact. Any column with an aggregation rule is a measure.

## 4 - Aggregation rule

### 4.1 - Default

A default aggregation rule is defined for all dimensions.

### 4.2 - Based on dimensions

For example, bank balances might be averaged over time but summed over the individual accounts.

## 5 - Calculation Levels

OBIEE offers two calculation levels in the repository:

• logical
• physical

You can also define logical calculations in either of the following ways:

• Before the aggregation, in the logical table source.
• After the aggregation, in a logical column derived from two other logical columns. For example: sum(col A) * sum(col B)

You can also define post-aggregation calculations in the logical SQL queries (Analytics, Answers, …)

## 6 - Guidelines

The following are two general guidelines:

Note however, that non-aggregated columns can exist in a logical fact table if they are mapped to a source which is at the lowest level of aggregation for all other dimensions.

If the physical model stores non-aggregated fields or if there is a need to aggregate dimension table fields, the business model should be designed in a way that follows the above two guidelines.

## 7 - Support

### 7.1 -  The Attribute xxxx defines a measure using an obsolete method.

Since version 10.1.3.2, Aggregate functions in logical column definitions which use other logical columns, e.g. SUM(Facts.Sales), are not supported anymore.

The supported method is to use the aggregation properties of a logical column which has a physical mapping.

You can change this behaviour by setting the parameter SUPPORT_OBSOLETE_MEASURES to YES in the NQSConfig.ini configuration file.