Reader small image

You're reading from  IBM Cognos 10 Framework Manager

Product typeBook
Published inMay 2013
PublisherPackt
ISBN-139781849685764
Edition1st Edition
Right arrow
Author (1)
Terence Phillip Curran
Terence Phillip Curran
author image
Terence Phillip Curran

Terry Curran gained an interest in computers while studying for his first degree in Biological Chemistry at the University of Kent. He went on to work as a computer operator for a national supermarket company. After working for several years as a computer operator, he went to Brighton Polytechnic, leaving with a Higher National Diploma in Computer Studies. Upon completion of his studies, he worked as a computer advisor at the City of London Polytechnic, assisting staff and students with their computer problems, and providing support for the various database systems in use across the Polytechnic. After taking voluntary redundancy from this post, he proceeded to the University of Stirling where he gained an MSc in Software Engineering. After graduating from the University of Stirling, Terry commenced working for a software consultancy company. While working for this company, Terry assisted with the writing of a software package for the publishing industry using Cognos PowerHouse. While working for this company, Terry gained experience in Business Intelligence Reporting tools, being asked to familiarize himself with Cognos Impromptu and PowerPlay in order to promote the use of these tools to clients. After this company ceased trading, Terry embarked on a career as a freelance computer consultant and contractor, using his experience with Cognos PowerHouse, various computer systems and databases, and Cognos Impromptu and PowerPlay, and later Cognos 8 and Cognos 10. Terry continues to work as a freelance Cognos Business Intelligence consultant and contractor, making use of his extensive knowledge and experience of IBM Cognos Business Intelligence Reporting. During the past 15 years, Terry has worked for a range of different industries including aviation, pharmaceuticals, insurance, logistics, and manufacturing to name a few. Terry is currently working for Ultra Electronics Command and Control Systems as a freelance Cognos consultant. Terry Curran was a technical reviewer for the book IBM Cognos 8 Report Studio Cookbook, Packt Publishing.
Read more about Terence Phillip Curran

Right arrow

Chapter 5. Modeling Dimensional Data

This chapter will cover the use of dimensional modeling, which is more correctly called Dimensionally Modeled Relational (DMR) data. The dimensional models created can be used with IBM Cognos Analysis Studio, and also with the other studios.

In this chapter we will cover the following:

  • Creating regular dimensions

  • Creating regular dimensions with multiple hierarchies

  • Creating measure dimensions

  • Creating scope dimensions

By the end of this chapter, you will be able to create a dimensional data model using relational data sources.

Dimensional modeling is the name for a set of techniques and concepts used in data warehouse design. Dimensional modeling is based on the concepts of dimensions (or context) and facts (or measures). Dimensions are groups of hierarchies and descriptors that define the facts; facts are typically numeric values that can be aggregated.

Dimension modeling is one of the functions available within Framework Manager. With the dimensional modeling...

Regular dimensions


A regular dimension contains one or more user-defined hierarchies, with each hierarchy consisting of the following components:

  • Levels: These are used to roll-up measures

  • Keys: Each item in a level must have a unique key defined

  • Captions: These are used as labels for the levels

  • Attributes: These contain additional information regarding the levels

Every regular dimension requires that each level has a key and a caption specified, and that the caption be a string data type.

Regular dimensions are based on data source or model query subjects that have already been defined in your model.

Creating a regular dimension

We will create a time dimension using the great_outdoors_warehouse from the IBM Cognos Samples. From the model, we will use the Time query from the Business view item as a relational data source to build our regular dimension.

Create your regular dimension as follows:

  1. Right-click on your namespace, and navigate to Create | Regular Dimension, or alternatively click on...

Dimensions with multiple hierarchies


When you create a dimension and if you are not restricted to a single hierarchy, a dimension can have more than one hierarchy. The only restriction on using hierarchies from the same dimension is that you cannot use one hierarchy for the rows, and another hierarchy for the columns in the same crosstab. If you need to use your hierarchies in this way then each hierarchy must be in a separate dimension.

An example of multiple hierarchies for the same dimension is the time hierarchy, which can be viewed by Quarter or by Month. These hierarchies are separate but are interchangeable, and are bound to the same underlying query.

Tip

You are not limited to two hierarchies in a dimension. A dimension may contain any number of hierarchies.

The following is the Time dimension as a single dimension with two hierarchies, one by Month and the other by Quarter:

The hierarchies are defined in Framework Manager as follows:

Note

Notice that at the lowest level we need to have...

Measure dimensions


A measure dimension is a collection of facts. A measure dimension is created from one or more query subjects that have a valid relationship between them.

Measure dimensions should only be composed of quantitative items and they do not contain any keys with which join them together. Therefore, to join a measure dimension to a regular dimension, it is necessary to create the joins in the underlying query subjects.

Creating a measure dimension

We will create a measure dimension using the great_outdoors_warehouse from the IBM Cognos Samples. From the model, we will use the Inventory Fact query from the Business View as a relational data source to build our measure dimension.

We will create a measure dimension as follows:

  1. Right-click on your namespace, and navigate to Create | Measure Dimension, or alternatively click on your namespace and from the Actions menu, navigate to Create | Measure Dimension. This will show the following dimension definition dialog:

  2. Navigate to Business...

Scope relationships


Scope relationships exist between measure dimensions and regular dimensions. These are used to define the level at which the measures are available for reporting.

Scope relationships are not the same as joins in relational queries. There are no conditions or criteria in a scope relationship that dictate how a query is to be formed. A scope relationship only specifies if a fact can be queried with a specific dimension. If there is no scope relationship between the fact and the dimension, this will result in an error.

Once you set the scope relationship for a measure dimension, the settings apply to all measures within the measure dimension. If data is to be reported at different levels for each measure in a measure dimension, then you can set the scope for each measure.

When setting the scope for a measure you are specifying the lowest level that the data can be reported on.

Tip

If you create the measure dimensions and regular dimensions in the same namespace, Framework Manager...

Summary


In this chapter, we have covered the techniques used to create a dimensional data model using a relational data source. We have covered the creation of dimensions, including dimensions with multiple hierarchies, measures, and scope relationships.

By using the techniques in this chapter, we can produce a Framework model that we can use with IBM Cognos Analysis Studio. We can also use the Framework model with Query Studio and Studio.

In the next chapter, we will look at enhancing our model by creating the business and presentation layers, which we will later publish for use by our report authors.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
IBM Cognos 10 Framework Manager
Published in: May 2013Publisher: PacktISBN-13: 9781849685764
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime

Author (1)

author image
Terence Phillip Curran

Terry Curran gained an interest in computers while studying for his first degree in Biological Chemistry at the University of Kent. He went on to work as a computer operator for a national supermarket company. After working for several years as a computer operator, he went to Brighton Polytechnic, leaving with a Higher National Diploma in Computer Studies. Upon completion of his studies, he worked as a computer advisor at the City of London Polytechnic, assisting staff and students with their computer problems, and providing support for the various database systems in use across the Polytechnic. After taking voluntary redundancy from this post, he proceeded to the University of Stirling where he gained an MSc in Software Engineering. After graduating from the University of Stirling, Terry commenced working for a software consultancy company. While working for this company, Terry assisted with the writing of a software package for the publishing industry using Cognos PowerHouse. While working for this company, Terry gained experience in Business Intelligence Reporting tools, being asked to familiarize himself with Cognos Impromptu and PowerPlay in order to promote the use of these tools to clients. After this company ceased trading, Terry embarked on a career as a freelance computer consultant and contractor, using his experience with Cognos PowerHouse, various computer systems and databases, and Cognos Impromptu and PowerPlay, and later Cognos 8 and Cognos 10. Terry continues to work as a freelance Cognos Business Intelligence consultant and contractor, making use of his extensive knowledge and experience of IBM Cognos Business Intelligence Reporting. During the past 15 years, Terry has worked for a range of different industries including aviation, pharmaceuticals, insurance, logistics, and manufacturing to name a few. Terry is currently working for Ultra Electronics Command and Control Systems as a freelance Cognos consultant. Terry Curran was a technical reviewer for the book IBM Cognos 8 Report Studio Cookbook, Packt Publishing.
Read more about Terence Phillip Curran