Академический Документы
Профессиональный Документы
Культура Документы
IBM Cognos
Framework Manager
®
IBM Cognos 8 BI
IBM
Files Cognos 8
Dimensional Relational Other
Content
IBM Cognos 8 Architecture (high level)
Web-based (IBM Cognos Connection)
IBM Cognos 8
user interfaces Windows-based (Framework Manager, Transformer, Metric Designer)
SDK
Web server
Tier 1: Web server (IBM Cognos 8 gateway)
System
Administrators
Authors,
Query Users,
Analysis Users
Consumers,
Readers
®
Order Product
1..n
Header Date
1..1 1..1
1..n
Order
Detail 1..n
Identify Features of an Operational Database
Operational databases:
are designed to maximize accuracy and minimize
redundancy
are optimized for writing and updating data rather
than reading data
often result in monolithic designs with multiple
joins
Large queries can perform slowly.
Identify Issues with Operational Databases
“Show all customer types Customer Sales Product
that bought from a product Type Area Line
1..1 1..1 1..1
line.” 1..n 1..n 1..n
Order Product
0..n
Header
1..1 1..1
1..n
Order
Detail 0..n
Customer
1..1 Order 1..1
0..n Fact 0..n Product
0..n
1..1
Date
Sales Product
Customer Rep Type
1..1 1..1 1..1
Sales
Rep 0..n 1..n
1..1 Order
0..n
0..n
Header Product
1..1 Order 1..1 1..1 1..1
Customer 0..n Fact 0..n Product 1..n
0..n
1..1 Order
Detail 0..n
Date
Examine Operational Data
Data is normalized
Product Line Table Product Type Table Product Table
Dimension Tables
Fact Table Product
Sales Revenue
Measures Quantity
………………………. Customer
Product Key
Foreign Keys Customer Key
Time Key Time
Examine Dimension Tables
Dimension tables provide descriptive information.
Dimension tables may be “conformed” so that they
are applicable to multiple fact tables across the
business. Dimension Dimension
Product Warehouse
Fact Fact
Sales Inventory
Dimension Dimension
Customer Time
Conformed Dimensions
Identify Issues with a Star Schema
Data is only as current as the last data load.
Structural issues:
the distinct count problem
very large dimension tables
snowflakes
Fact issues:
different levels of granularity (detail) in fact tables
Define Relationships
Specify how data in one table is linked to data in
another table.
Relationships are implied in the physical data
(modeler explicitly declares these relationships)
Modeler formulates the reality of the business by
configuring the relationships
Examine Relationships: Cardinality
1..1 Security One-to-One: One employee
Employee
1..1 Number holds exactly one security
number.
Which suppliers
1..n
Supplier Part provide which
1..n
specific parts?
Examine Transitive Relationships
Exists if there is more than one path between two
tables
1..1
Customer 0..n
Order
1..1 1..1
Division
1..n 1..n
Branch Employee
1..1 1..1
Division 1..n
Branch 1..n
Employee
1..1 1..n
???
®
IBM Cognos 8 BI
Relational Dimensional
Model Model
Define a Framework Manager Project
At the highest level, objects in a project include:
a model organized
into namespaces
and folders
data sources
parameter maps
packages
Define Framework Manager Metadata
Elements
Metadata is defined and organized by the following
elements: Model Measure
Query Subject Dimension
Data Source
Query Subject
Regular
Dimension
Query Item
Relationship
(scope
relationship
Shortcut
for dimensional
objects)
Examine the Model from the Author’s Point of
View
Framework Manager Workflow
Framework Manager
Create Model
Import Prepare
Project Metadata for
Metadata Metadata
Reporting
Report Studio
Query Studio
Data Content
Analysis Studio
Sources Store
….
Import Required Metadata Recommendation #2
Select Object
for Import
Import
Create Data
Source
Connection
Generate Relationship Criteria
Requirements Review Recommendation #1
Staff
Retailer by
by Location
Location
Time
Import Additional Metadata
Requirements Review Recommendation #1
Staff
Retailer by
by Location
Location
Time
®
IBM Cognos 8 BI
Create Model
Import Prepare
Project Metadata for
Metadata Metadata
Reporting
Report Studio
Query Studio
Data Content
Analysis Studio
Sources Store
….
Verify Relationships
Ensure your model has all required relationships after
import.
Ensure the join cardinality between query subjects
meet your needs
0..n - zero occurrences to multiple occurrences
1..n - one occurrence to multiple occurrences
0..1 - zero occurrences to one occurrence
1..1 - must have one occurrence
Mandatory Cardinality Example
Product Type Table
Product Line Table
PL# PT# PT_Desc
PL# Plods
1..1 1 100 Aviator
1 Sunglasses 1..n
1 200 High Fashion
2 Razors
1 300 Prescription
1 400 Children
Create Model
Import Prepare
Project Metadata for
Metadata Metadata
Reporting
Report Studio
Query Studio
Data Content
Analysis Studio
Sources Store
….
What are the Advantages of Modeling as a
Star Schema?
Subject area marts (star schema groupings)
Simpler for the user to understand - fewer query
subjects
Adaptable and extendable - you can easily add and
reuse facts and dimensions
Conformed dimensions prevent data silos - facts are
related to one another through dimensions
Modeling in Layers
Recommend a Presentation View
Presentation View for
logical groupings
Choose whether you
?
would like a middle layer
and what to put in it
Foundation
Objects View
Modeling in Layers: No Middle Layer
§ Foundation Objects View Presentation View
contains
§ data source query subjects
§ model query subjects to
resolve issues
§ calculations and filters
§ Appropriate for large projects
§ Can be difficult to maintain
Foundation
§ Not easily portable Objects View
Modeling in Layers: Business Logic View
Business Logic View contains Presentation View
all model query subjects,
joined with relationships
all calculations and filters
Business Logic View
Provides insulation between data
source and reports
Less maintenance
Portable Data Source View
Create Model
Import Prepare
Project Metadata for
Metadata Metadata
Reporting
Report Studio
Query Studio
Data Content
Analysis Studio
Sources Store
….
Examine Returns Data
In the data source returns are related to order details,
and not the required dimensions for reporting
1..1
ORDER_DETAILS RETURNED_ITEM
0..n
Create Virtual Facts Recommendation #5
Order Codes
1..1 1..1
Order Number
Order Detail Code
1..n Conformed Dimension 1..n
Sales Fact Returns Fact
Consolidate Metadata Recommendation #5
PRODUCT_
LINE
1..1
1..n
PRODUCT_ Products
TYPE
PRODUCT 1..1 1..1
NAME_LOOKUP 1..n Model
PRODUCT Query Subject
1..1
®
IBM Cognos 8 BI
Create Model
Import Prepare
Project Metadata for
Metadata Metadata
Reporting
Report Studio
Query Studio
Data Content
Sources Analysis Studio
Store
….
Create Calculations Recommendation #6
Embedded filter
Stand-alone filters
Customize Metadata for Run Time
Recommendation #6
Modify query subjects to dynamically control the
data returned using:
session parameters
parameter maps
macros
IBM Cognos 8 Environment Session
Parameters
Predefined and stored in the content store database
Parameter Maps
Used to substitute one value for another
Keys must be unique
Key Value
Bart Scott 60
Ana Orozco 80
Alex 53
Rodriguez
Region calculation =
‘SALES_REGION_’ +
a string based on
user’s locale setting
PRODUCT_LANGUAGE Filter =
a string based on user’s locale setting
Specify Determinants
IBM Cognos 8 BI
Create Model
Import Prepare
Project Metadata for
Metadata Metadata
Reporting
Report Studio
Query Studio
Data Content
Analysis Studio
Sources Store
….
IBM Cognos 8 Determinants
Recommendation #7
MONTH_KEY
SALES_TARGET
Specify Determinants
Recommendation #7
Data Set Example #1
Data
Year Key Month Key Month Name Day Key Day Name
Determinant Settings
Name Key Attributes Uniquely Identified Group By
Determinant Settings
Name Key Attributes Uniquely Identified Group By
SALES_TARGET
®
IBM Cognos 8 BI
Create Model
Import Prepare
Project Metadata for
Metadata Metadata
Reporting
Report Studio
Query Studio
Data Content
Sources Analysis Studio
Store
….
Create a Presentation View Recommendation #10
Sales Target
Fact
Products Time
Retailer
by Location
Identify Conformed Dimensions
Based on matching names
Must use at least one
conformed dimension to
report across facts to:
allow for stitch queries
ensure correct aggregation
for each fact