Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Cognos 8 BI
Objectives
Data Access
Composite Metric
Files Database
Relational Cubes
More
Metadata for Business Intelligence
Product
Dimension
1..1 1..1
1..n 1..n
Sales Inventory
Fact Levels Fact
1..n 1..n
1..1 1..1
Time
Dimension
Manage Star Schemas in Framework Manager
Product Product
Dimension Dimension
1..1 1..1
Time Time
Dimension Dimension
Examine Multi-Fact Queries
Product
Dimension
1..1 1..1
1..n 1..n
Sales Inventory
Fact Levels Fact
1..n 1..n
1..1 1..1
Time
Dimension
Examine Stitch Queries
Stitch queries send two separate queries to the data source and then
merge them locally.
The SQL generated contains syntax such as:
coalesce
full outer join
Report Output
Database Cognos 8
D1 D2 F1 F2
Kimball:
A degenerate dimension (DD) acts as a dimension key in the fact table,
however does not join to a corresponding dimension table because all its
interesting attributes have already been placed in other analytic dimensions
Facts
Degenerate Dimension
Facts
Joins
Non-matching Non-matching
records records
Determinants
Dimensional Modeling enhancements
Regular Dimensions
Measure dimensions (facts)
Scope relationships
What is a determinant?
Year Key Month Key Month Name Day Key Day Name
2005 200501 Jan 05 20050101 Sunday, Jan 1, 2005
2005 200502 Jan 05 20050102 Monday, Jan 2, 2005
Determinants
Name Key Attributes Uniquely Identified Group By
Year Year Key None No Yes
Month Month Key Month Name No Yes
Day Day Key Day Name Yes No
Month Key
Month Name
Year Key
What is a determinant? Example 2
Example 2 – Identifies a set of columns that identify a non-unique set within the data:
Year Key Month Key Month Name Day Key Day Name
2005 01 January 20050101 Sunday, Jan 1, 2005
2005 02 January 20050102 Monday, Jan 2, 2005
Determinants
Name Key Attributes Uniquely Identified Group By
Year Year Key None No Yes
Example:
Quantity fact = reported (and joined) at the day level
Expected Volume fact = reported (and joined) at the month level
(month is repeated so you would see a select distinct in the query
and month key in the group by)
Determinants on the Time Dimension allow data reported from both
facts to be rolled up to their correct levels
Determinants Additional Information
On import, Primary
Key and Unique Index
are flagged as
“Uniquely Identified”
Multi-part keys are
recognized and
treated as such on
import
Workshop 1
Dimension Map UI
Merging or Converting into Dimensions
Dimensional Modeling
Why Both Determinants and Regular
Dimensions?
Union
Product 1
Product 2
Except
Product 1
Product 2
Intersect
Product 1
Product 2
Test – Cognos 8 update
UI Overview
Workshop - Query Sets and Test Enhancements
Query Sets
Import Views from go sales data warehouse
Select the AR_AMX and AR_CEU Views to import
Compare data columns between the imported views
Highlight the two views
From the Actions menu – Define Query Set
What would have happened if we selected “Merge into a New
Query Subject” ?
Test enhancements
TEST: Select one or more linked Query Subjects
TEST: Select query items from one or more query subjects
Observe the data and the SQL
Compare the Batch and AutoSum Check boxes results
Best Practices Review