cognos10 for beginner's part ii

Upload: amit-sharma

Post on 07-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/4/2019 Cognos10 for Beginner's Part II

    1/21

    Creating Sales Analysis Model

    Cognos 10 BI Framework Manager

    Beginners Guide Part II

    Provided By: BISP Created By: Mitesh Agrawalhttp://bispsolutions.wordpress.com Reviewed By: Amit Sharmahttp://learncognosreports.wordpress.com/ Team BISP

    .

    .

    .

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

    This is another document from Cognos for Beginners Series. The documents

    briefs about basic of Cognos Framework Manager and the steps to build the Data

    Model for Sales Analysis reports in Framework manager. Join our professional

    training program to learn from the experts.

    http://bispsolutions.wordpress.com/http://bispsolutions.wordpress.com/
  • 8/4/2019 Cognos10 for Beginner's Part II

    2/21

    Table of Contents Overview of Framework Manager.....4 Introduction to Framework Manager.5 Planning Your Metadata....7 Contents of Framework Manager .8

    o Project .9o Metadata Model10o Namespaces11o Data Sources...12o Query Subject..13o Query Item..14o Relationship....15o Package...16

    Architecture to Framework Manager..17 Design and create Project18 Create a project...19 Framework Manager : View...32

    o Physical View32o Business View..37o Presentation View.46

    Create Relationship..50 Adding Business Rules in Framework Manager..........52 Modeling Relational Metadata..60 Creating Dimension Objects For OLAP- Style Reporting.........66

    o Create a Regular Dimension...66o Create a Measure Dimension.....84

    Create and Publish Package........87

    Validation to Data Model....94 Apply Security in IBM Cognos Framework Manager...100

    .

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    3/21

    Cognos 10 Framework Manager: Overview

    Examine Framework Manager

    The next step is to validate the model to ensure the reports build on top of the model are

    correct. Well follow simple steps to examine the Framework Manager.

    Framework Manager: View

    Framework Manager contains the three views:

    Physical View

    Business View

    Presentation View

    Physical View-

    In this view information on physical data sources is stored. Represents the physica

    structure of the data sources. It contains the Query Subject (i.e; tables) imported from the

    Data Base with appropriate joins between them where the actual data used primarily for

    informational purposes resides.

    The data sources can be of the same or different varieties. When you import metadata,many of the properties of the data sources are configured automatically based on the

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    4/21

    information gathered during the import process. After import you can also define otherattributes of the physical data source, such as join relationships, that might not exist in thedata source metadata.

    Create Alias Table

    Alias Table-

    Alias Table is actually same as physical table in Framework Manager but with the

    type of Alias.

    Alias Tables play a important role in designing a physical view.

    Alias table is Shortcut to a Query subject in Framework Manager.

    Alias Table also contain all the Query Item , which the physical table contain.

    Purpose to create Alias Table-

    It simplifies the schema structure and using alias table we can create a

    star/snowflake schema in business view.

    Alias Tables are created to simplify the data model by giving a specific name to a

    them, which is easily understandable by end user.

    Steps to create an Alias Table-

    To create Alias Table Right-click on a physical tableCreate Alias Shortcut.

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    5/21

    The alias table (i. e; Shortcut to Dim_Segment) appear in the physical View.

    Specify a name to alias table.

    Similarly you can create more alias table according to reporting requirement.

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    6/21

    To view all objects of the physical view expand the imported database (i.e; project), which contain

    Physical Data model, Query Subject (i.e; Physical Tables), Query Item (i.e; Physical Columns), and

    Key Columns etc.

    The following objects define below-

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    7/21

    Physical Data Model-

    Physical data model contains the Query subject (i.e; tables) and Query items (i.e;columns) are contained within a query subject imported from the Datasource.

    Physical data model represents how the model will be built in the database. A physical database model shows all table structures, including column name, column

    data type, column constraints, primary key, foreign key, and relationships between

    tables.

    Physical dimension table-

    It contains the key column and physical attribute.

    A physical dimension table is a broad grouping of data such as products, dates and

    markets.

    Key Column-

    Key Column uniquely identify each row in a table.

    Physical Attribute-

    Physical Attribute represents a single characteristic such as product name, and

    region name, customer name etc.

    Physical Fact Table-

    It contains the foreign keys associated with its physical dimension table.

    It contain the measure column which is used for evaluate value.

    Measure Column

    Measure/Facts are the key performance indicator that you want to evaluate.

    A Measure is a number or quantity that records a directly observable value o

    performance.

    Measures include facts or variables typically stored as numerical fields, which

    provide the focal point of investigation.

    Business View-

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

    http://en.wikipedia.org/wiki/Row_(database)http://en.wikipedia.org/wiki/Table_(database)http://www.businessdictionary.com/definition/value.htmlhttp://www.investorwords.com/10438/number.htmlhttp://www.investorwords.com/10438/number.htmlhttp://www.businessdictionary.com/definition/quantity.htmlhttp://www.businessdictionary.com/definition/record.htmlhttp://www.businessdictionary.com/definition/record.htmlhttp://www.investorwords.com/9454/directly.htmlhttp://www.businessdictionary.com/definition/value.htmlhttp://www.businessdictionary.com/definition/performance.htmlhttp://en.wikipedia.org/wiki/Row_(database)http://en.wikipedia.org/wiki/Table_(database)http://www.businessdictionary.com/definition/value.htmlhttp://www.investorwords.com/10438/number.htmlhttp://www.businessdictionary.com/definition/quantity.htmlhttp://www.businessdictionary.com/definition/record.htmlhttp://www.investorwords.com/9454/directly.htmlhttp://www.businessdictionary.com/definition/value.htmlhttp://www.businessdictionary.com/definition/performance.html
  • 8/4/2019 Cognos10 for Beginner's Part II

    8/21

    Business View Represents the logical structure of the information in the Framework

    Manager. The physical schemas are simplified and restructured in this view and all the

    Business logics are implemented. It specifies the mapping between the business models

    and the Physical view schema. The Business Model can contain one or more business

    model objects. A business model object contains the business model definitions and the

    mappings from logical to physical tables for the business model.

    What is Business View-

    It contains the business view of the metadata such as business calculations, filters

    and so on.

    It contain organized model by creating separate views for each user group that

    reflect the business concepts familiar to your users.

    Create Business View-

    Create one or more optional namespaces or folders for resolving complexities that

    affect querying using query subjects or dimensional objects.

    Create one or more namespaces or folders for the business view of the metadata tha

    contains shortcuts to dimensions or query subjects.

    Steps to create a Logical Table in Business View-

    Go to Physical ViewRight click CreateNamespace

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    9/21

    Specify a name to a New Namespace.

    To create a Logical Table in business view , you should follow-

    Right click on Business View CreateQuert subject

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    10/21

    New Query Subject window will appear. Specify a Name and Type that you want to

    define to this New Query subject .By default it will provide you a data type, please try to

    keep it same.

    After Specify Name and Type to this New Query subject, click Ok.

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    11/21

    Query Subject Definition window will appear. Drag and drop the objects from

    Available model Objects to Query Items and Calculations.

    After drag and drop the objects, Click ok.

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    12/21

    Similarly you can create more Logical Table in Business view. We can view the

    Logical table in business view, which we have created.

    To view all objects of the business view expand the Business Data Model, which contain Query

    Subject (i.e; Logical Tables), Query Item (i.e; Logical Columns), and Key Columns etc.

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    13/21

    The following business view objects define below-

    Business/Logical Data Model-

    Business /Logical data models represent the abstract structure of some domain o

    information.

    A business/logical data model describes the data in as much detail.

    Business/Logical model built to represent the business view of data, which is

    easily understandable to end user.

    Business/Logical Dimension Table-

    It contains the key column and logical attribute.

    A business/logical dimension table is a broad grouping of data about a major

    aspect of a business, such as products, dates and markets.

    Key Column-

    Key Column uniquely identifies each rowin a table.

    Business/ Logical Attribute-

    Business/Logical Attribute represents a single characteristic such as produc

    name, and region name, customer name etc.

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

    http://en.wikipedia.org/wiki/Row_(database)http://en.wikipedia.org/wiki/Row_(database)http://en.wikipedia.org/wiki/Table_(database)http://en.wikipedia.org/wiki/Row_(database)http://en.wikipedia.org/wiki/Table_(database)
  • 8/4/2019 Cognos10 for Beginner's Part II

    14/21

    Business/ Logical Fact Table-

    It contains the foreign keys associated with its business/logical dimension table.

    It contain the measure column which is used for evaluate value.

    Measure Column

    Measure/Facts are the key performance indicator that you want to evaluate.

    A Measure is a number or quantity that records a directly observable value o

    performance.

    Measures include facts or variables typically stored as numerical fields, which

    provide the focal point of investigation.

    Purpose to Create a Business/Logical Model-

    We can create one or more optional namespaces or folders for resolving

    complexities that affect querying using query subjects or dimensional objects.

    Business/Logical model built to represent the business view of data, which is easily

    understandable to end user.

    Create one or more namespaces or folders for the business view of the metadata tha

    contains shortcuts to dimensions or query subjects.

    Business/Logical Model

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

    http://www.businessdictionary.com/definition/value.htmlhttp://www.investorwords.com/10438/number.htmlhttp://www.investorwords.com/10438/number.htmlhttp://www.businessdictionary.com/definition/quantity.htmlhttp://www.businessdictionary.com/definition/record.htmlhttp://www.businessdictionary.com/definition/record.htmlhttp://www.businessdictionary.com/definition/record.htmlhttp://www.investorwords.com/9454/directly.htmlhttp://www.businessdictionary.com/definition/value.htmlhttp://www.businessdictionary.com/definition/performance.htmlhttp://www.businessdictionary.com/definition/value.htmlhttp://www.investorwords.com/10438/number.htmlhttp://www.businessdictionary.com/definition/quantity.htmlhttp://www.businessdictionary.com/definition/record.htmlhttp://www.investorwords.com/9454/directly.htmlhttp://www.businessdictionary.com/definition/value.htmlhttp://www.businessdictionary.com/definition/performance.html
  • 8/4/2019 Cognos10 for Beginner's Part II

    15/21

    The above screen shows the Business/Logical Model, which contains Dimension and Fact table

    and relationship between them. In the above screen the blue rectangular box shows the

    dimension table and red rectangular box shows the fact table. The Schema

    Dimension table-

    It contains the key column and logical attribute.

    A business/logical dimension table is a broad grouping of data about a major aspect

    of a business, such as products, dates and markets.

    Business/ Logical Fact Table-

    It contains the foreign keys associated with its business/logical dimension table.

    It contain the measure column which is used for evaluate value.

    Description about Logical Dimension Table and Logical Fact Table-

    Logical Dimension Table-

    D0 Time ( Time Dimension Table )- It contain the key column, and all theinformation about Time Dimension ( i.e; yearly, half yearly, quarterly, monthly, weekly,day). This dimension table is used to evaluate Measure value across the time. D1 customer (Customer Dimension Table) -It contain the customer key column,and all the information about Customer Dimension ( i.e; customer name, customer type,customer segment description etc). This dimension table is used to view the customerinformation and evaluate Measure value across customer detail.

    D2 Market (Market Dimension Table) -It contain the market key column, and allthe information about Market Dimension ( i.e; market description, region, district, areaetc). This dimension table is used to view the market information and evaluate Measurevalue across market detail. D3 Order( Order Dimension Table)- It contain the order key column, and all theinformation about Order Dimension ( i.e; order status, status date, previous status etc).This dimension table is used to view the order information and evaluate Measure valueacross order detail. D4 Product (Profit Dimension Table)- It contain the profit key column, and allthe information about Product Dimension ( i.e; Product description, color, size, type

    etc). This dimension table is used to view the product information and evaluate Measurevalue across product detail. D5 Employee (Employee Dimension Table)- It contain the employee key column,and all the information about Employee Dimension ( i.e; employee name, designation,hiring date etc). This dimension table is used to view the employee information andevaluate Measure value across employee detail.

    Logical Fact Table-

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

    http://www.businessdictionary.com/definition/value.htmlhttp://www.businessdictionary.com/definition/value.html
  • 8/4/2019 Cognos10 for Beginner's Part II

    16/21

    F0 Rev Base Measure (Fact Table)- It contain the foreign key column, which isassociated with all the dimension table. It contain all the fact/measure value, which is anumeric value. This table is basically used for the profitability measurement.

    Presentation View-

    Represents the presentation structure of the Framework Manager. As the names specifies this

    layer is used for Presentation of required tables and columns to the users. Provides customized

    views of Business model to users, exposes meaningful data to the user and organizes data the

    way users analyze. The columns pulled in this layer are directly visible to the users.

    The Presentation layer provides a means to further simplify or customize the business modelfor end users. Simplifying the view of the data for users makes it easier for users to craftqueries based on their business needs. For example, you can organize columns differently thanthe table structure in the Business Model and Mapping layer, show fewer columns, andrename columns so that they are more understandable to users.

    Create a Presentation view-

    Go to Business viewRight clickCreateNamespace

    Specify a name to a New Namespace.

    To create a Presentation Table in presentation view ,you should follow-

    Right click on Presentation View CreateQuert subject

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    17/21

    New Query Subject window will appear. Specify a Name and Type that you want to

    define to this New Query subject .By default it will provide you a data type, please try tokeep it same.

    After Specify Name and Type to this New Query subject, click Ok.

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    18/21

    Query Subject Definition window will appear. Drag and drop the objects from

    Available model Objects to Query Items and Calculations.

    After drag and drop the objects, Click ok.

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    19/21

    Similarly you can create more Presentable Table in Business view. We can view the

    Logical table in business view, which we have created.

    Creating Data Model Dimension and Fact Joining

    For creating relationship between different dimension tables and fact table, go to Diagram

    tab as shown in above screen and select relationship icon from the tool bar menu. Then

    select the query item from table and drag it to the fact table query item with same name

    (Remember that ,Relationship Icon- )

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    20/21

    The following screen shows you relationship (one-to-many) between dimension table and

    fact table, and join operator. press OK.

    The following screen shows the Data Model, which shows the relationship between

    dimension table and fact table. This schema is known as Star Schema.

    Cognos 10 BI Framework Manager Beginners Guide Part I| http://learncognosreports.wordpress.com | BISP

  • 8/4/2019 Cognos10 for Beginner's Part II

    21/21