Creating measure dimensions

Measure dimensions represent the quantitative data described by regular dimensions.

Known by many terms in various OLAP products, a measure dimension is simply the object that contains the fact data. Measure dimensions differ from fact query subjects because they do not include the foreign keys used to join a fact query subject to a dimensional query subject. This is because the measure dimension is not meant to be joined as if it were a relational data object.

For query generation purposes, a measure dimension derives its relationship to a regular dimension through the underlying query subjects. Similarly the relationship to other measure dimensions is through regular dimensions that are based on query subjects built to behave as conformed dimensions. To enable multiple-fact, multiple-grain querying, you must have query subjects and determinants created appropriately before you build regular dimensions and measure dimensions.

Model measure dimensions should be composed of only quantitative items. Because, by design, model measure dimensions do not contain keys on which to join, it is not possible to create joins to model measure dimensions. Instead of joining model measure dimensions to regular dimensions, create joins on the underlying query subjects. Then either manually create a scope relationship between them or detect scope if both dimensions are in the same namespace. Only measures are visible in the model measure dimension. Query items, such as keys, are hidden.

While you can use data source dimensions, they have limited functionality in comparison to query subjects or model dimensions. Discontinue using data source dimensions, both regular and measure. Define regular and measure dimensions as model objects based on data source query subjects or model query subjects or both.

You can add value by embedding calculations based on existing business rules, such as Profit Margin. You can change the order of measures, query items, and calculations. If the measure dimension contains a folder, you can change the order only in the Project Viewer. You cannot define hierarchies or levels for a measure dimension.

About this task

You can create a measure dimension for one or more query subjects that have a valid relationship between them.

Procedure

  1. Click a namespace where you want to place the measure dimension.
  2. Click Actions, Create, Measure Dimension.
  3. Click the Measure Dimension tab.
  4. Drag measures from the Model Objects box to the Measures box.
  5. Perform the actions that you want.

    Goal

    Action

    Embed a calculation

    Click Add.

    You can also right-click a measure and click Add or Edit.

    Embed a filter

    Click the Filters tab.

    Test the measure dimension

    Click the Test tab or the Query Information tab.

    Convert a measure into a query item

    Right-click the measure and click Convert to Query Item.

    If you test the measure dimension by using the Query Information tab, IBM® Cognos® Analytics validates the measure dimension. If you test the measure dimension by using the Test tab, IBM Cognos Analytics executes the measure dimension. The SQL for validate is slightly different than the SQL for execute. To generate definitive SQL for the measure dimension, use the Test tab.

  6. Click OK.

Results

You can also use the Dimension Map tab to create a measure dimension. Click the measure dimension button measure dimension icon.

You may be interested in the following related topics: