Table of Contents

OBIEE 10G/11G - Level-based Hierarchy

About

Level-based hierarchy is the first type of hierarchy in OBIEE.

Dimension hierarchy levels allow :

Special type of level-based dimension are supported:

Rules

When building a hierarchy in the Administration Tool, follow these rules.

Structure

Total US
            Region
                        District
                                    Customer
            State
                        County
                                    Customer
     

Level keys

Obiee Dimension Drill Down Parameters

Note that the Physical layer still uses the surrogate keys in the joins, so there is no performance or flexibility penalty for using business keys in the business model.

Level

How to

Create it automatically ?

For Siebel Analytics versions 7.7 and above, it is possible to create the dimension hierarchy automatically:

I would have preferred “Create Hierarchy”. On this website, the dimension is the logical table and the hierarchy is the definition of the levels

This option appears only if the table is recognized as a logical dimension, otherwise the table is identified as a fact_table.

Know the table associated with the hierarchy

Obiee11g Logical Dimension Table Tab

Define Multiple Hierarchies for the Same Dimension Logical Table

Sometimes there may be a need to apply different hierarchies on the same logical table.

A logical dimension table, however, can be associated with one and only one hierarchy.

As a result, create a single dimension that includes both hierarchies to achieve this requirement.

The following steps to achieve this assume that there is at least one level in common:

  1. Select the highest common level. Note that it is possible to use the grand total level as the common level.
  2. Right-click and choose New Object > Child Level to create a new branch off of the existing hierarchy.
  3. Fill out the remainder of the hierarchy in the same way as for a new hierarchy.
  4. When you want to specify the bottom of this new hierarchy branch, use the New Object → Shared Level As Child menu option.

Below is an example. The time dimension contains two different hierarchies, one for the year and another one for the fiscal year. Year and Fiscal Year levels are both children of the “Total” grand total level.

Obiee Multiple Dimension Hierarchie

If this guideline is not used and several dimensions are defined on the same logical table, the following error will be returned in the report:

[nQSError:  14031] The content filter of a source for logical table:  <Logical Table Name> references multiple dimensions.

Work with a Snowflake Schema

When using a snowflake schema, several dimension logical tables are joined together.

In this example, Product Line > Products is a branch of the snowflake.

Obiee Snowflake Branch

One dimension hierarchy should be created for the branch. The minimal levels of this hierarchy should be:

  1. Grand Total Level
  2. Detail Level of the dimension that is not joined to the fact table. In this case, it is ProductLine.
  3. Detail Level of the dimension that is joined to the fact table.

So in this example, the following hierarchy would be created:

Obiee Hierarchy Snowflake

Support

A source does not join to any fact source

OBI Server recommends that the key of the lowest level of a dimension hierarchy must match the primary key of its corresponding dimension logical tables.

If this is not done, the following error may be returned in the report:

[39008] Logical dimension table <Dimension Table Name> has a source <Source Table Name> 
that does not join to any fact source.

Documentation / Reference