114 Solving Operational Business Intelligence with InfoSphere Warehouse Advanced Edition
calculations. It is these measures or metrics that form the basis of what is to be
analyzed within the cube model. As an example, they might be sales amounts,
counts of product failures, or the number of admitted patients.
Within the cube model, understand that measures in themselves only become
meaningful when used in the context of a set of dimensions. For instance, when
used on its own, a sale of 300 units is not meaningful. However, when combined
with dimensions for location and product line, the resulting measure takes on
more meaning, that is, “A clothing line in the eastern sales region sold 300 units.”
It is these measures or metrics in connection with the dimension objects, such as
time or location, that allow you to manage your business, analyze options, and
ask your BI questions.
The following types of fact measures can be implemented:
Calculated facts These are calculations that are based on existing
measures or column values in the relational database.
For example, the sales amount might be calculated from
the unit price of a item against the number of items sold.
These calculations can be performed by two methods
within a cube service in InfoSphere Warehouse: SQL and
MDX. For SQL calculations, the work is performed by
DB2 and SQL functions. For MDX calculations, the work
is performed within the Java application that is the cube
service and which is better suited to complex calculations.
Additive facts This refers to where a measure is rolled up across all
dimensions and levels using a consistent aggregation
function. An example of an additive fact is the sum of
sales or cost of goods sold. Cubing Services also support
average, count, standard deviation, max, min, and
variance as aggregation types.
Non-additive facts Non-additive facts cannot be rolled up through any of the
dimensions in the cube model, which is typically the case
for any measure calculations that result in ratios,
averages, or variance percentages, for example. Cubing
Services supports non-additive facts for calculated
measures by setting the aggregation function to None,
which results in that calculation being calculated after the
values are aggregated
Dimension element
In a star schema-based dimensional model, each dimension table contains a
specific set of related columns, biased towards a particular topic such as time,
location, or product range. Because a cube model is an abstraction of the star