cognos fm - symposium paper

26
Introduction to Model Advisor in IBM Cognos 8 Framework Manager Pratyush Praveen & Maitrayee Sinha

Upload: api-3733985

Post on 17-Nov-2014

389 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Cognos FM - Symposium paper

Introduction to Model Advisor in IBM

Cognos 8 Framework Manager

Pratyush Praveen & Maitrayee Sinha

Page 2: Cognos FM - Symposium paper

Agenda

> Model Adviser.

• Introduction

• Constraints

• Options

• Relationship Analysis

• Determinants Analysis

• Miscellaneous Analysis

Page 3: Cognos FM - Symposium paper

Model Adviser: Introduction

> An automated tool analyze the metadata in a model

> Applies current modeling guidelines and identifies inconsistencies

and areas that you need to examine

> Provides new modelers with an assistive tool and more

experienced modelers with a diagnostic tool.

Page 4: Cognos FM - Symposium paper

Model Adviser: Constraints

> Not all items flagged by the Model Advisor are indicative of a

problem.

> Do not recommend running the Model Advisor against an entire

model.

> Not intended for use with SAP BW or other OLAP sources.

Page 5: Cognos FM - Symposium paper

Model Adviser: Options

> Relationship Analysis

> Determinants Analysis

> Miscellaneous Analysis

Page 6: Cognos FM - Symposium paper

Facts identified by cardinality

> Looks for query subjects that have only the many (n)

cardinality.

Page 7: Cognos FM - Symposium paper

Facts identified by cardinality

Fact Dimension Dimension Fact

ORDER_HEADERSALES_STAFF SALES_BRANCH1..n

1..1

1..n

1..1 ORDER_DETAILS1..1

1..n

Page 8: Cognos FM - Symposium paper

Query subjects that can behave as facts or dimensions

> Looks for query subjects that have a combination of the many (n)

and one or zero (1,0) cardinality.

Page 9: Cognos FM - Symposium paper

Query subjects that can behave as facts or dimensions

ORDER_HEADER

ORDER_NUMBERRETAILER_NAMERETAILER_NAME_MB

RETAILER_SITE_CODESALES_STAFF_CODESALES_BRANCH_CODEORDER_DATEORDER_CLOSE_DATE

ORDER_METHOD_CODE

SALES_TARGET

SALES_STAFF_CODESALES_YEARSALES_PERIOD

RETAILER_NAMEPRODUCT_NUMBERSALES_TARGETRETAILER_CODE

SALES_STAFF

SALES_STAFF_CODEFIRST_NAME

FIRST_NAME_MBLAST_NAMELAST_NAME_MBPOSITION_ENPOSITION_FR

POSITION_DEPOSITION_NLPOSITION_JA

PRODUCT

PRODUCT_NUMBERINTRODUCTION_DATEPRODUCT_TYPE_CODEPRODUCTION_COST

MARGINPRODUCT_IMAGE

ORDER_DETAILS

ORDER_DETAIL_CODE

ORDER_NUMBERPRODUCT_NUMBERACTUAL_REVENUEQUANTITYUNIT_COST

UNIT_PRICEUNIT_SALE_PRICE

1..n

1..1

1..1

1..n

1..n 1..1

1..n

1..1

1..n

1..1

Blind Spot

Query Subjects

Page 10: Cognos FM - Symposium paper

Query subjects that can behave as facts or dimensions

Fact Dimension Fact

SALES_STAFF SALES_BRANCH1..n

1..11..1

1..nORDERS

Fact Dimension Dimension Fact

ORDER_HEADERSALES_STAFF SALES_BRANCH1..n

1..1

1..n

1..1 ORDER_DETAILS1..1

1..n

Page 11: Cognos FM - Symposium paper

Query subjects with multiple relationships

> Looks for query subjects with multiple valid relationships between itself and another query subject.

Page 12: Cognos FM - Symposium paper

Query subjects with multiple relationships

Orders Time

Order Date = Day Key

Ship Date = Day Key

Close Date = Day Key

Orders

Time

Order Dat

e = Day K

ey

Close Date = Day Key

Ship Time

Close Time

Ship Date = Day Key

Page 13: Cognos FM - Symposium paper

Query subjects that join to themselves

> Looks for reflexive and recursive relationships.

Page 14: Cognos FM - Symposium paper

Query subjects that join to themselves

Employee Query Subject

Employee ID

Manager ID

Phone Number

Ext.

Recursive Relationship

Between Employee ID

and

Manager ID

Employee Query Subject

Employee ID

Manager ID

Phone Number

Ext.

Recursive Relationship

Can now be edited

Shortcut to Employee Query Subject

Employee ID

Manager ID

Phone Number

Ext.

1..1

1..n

Page 15: Cognos FM - Symposium paper

Model Adviser: Options

> Relationship Analysis

> Determinants Analysis

> Miscellaneous Analysis

Page 16: Cognos FM - Symposium paper

Determinants that conflict with relationships

> Looks for determinants that conflict with the relationships defined

between query subjects

Page 17: Cognos FM - Symposium paper

Model Adviser: Options

> Relationship Analysis

> Determinants Analysis

> Miscellaneous Analysis

Page 18: Cognos FM - Symposium paper

Factors that will override the minimized SQL setting

> Looks for various factors that override the SQL Generation type setting of

Minimized, such as modified data source query subjects, relationships

between model query subjects, or determinants for model query subjects

Cont...

Page 19: Cognos FM - Symposium paper

Factors that will override the minimized SQL setting

> SQL for query subject as a whole:

Cont...

Page 20: Cognos FM - Symposium paper

Factors that will override the minimized SQL setting

> SQL for Items from one table with effect of minimized SQL. :

Cont...

Page 21: Cognos FM - Symposium paper

Factors that will override the minimized SQL setting

> SQL after join overrides the minimized SQL setting:

Page 22: Cognos FM - Symposium paper

Embedded calculations that use the calculated aggregation type

> Looks for embedded calculations where the value of the Regular

Aggregate property is set to ‘Calculated’.

Page 23: Cognos FM - Symposium paper

Embedded calculations that use the calculated aggregation type

> When its aggregation is set to automatic, the Margin is aggregated as:

• SUM( Production Cost / Revenue )

> We want Margin to be computed as:

• SUM( Production Cost ) / SUM( Revenue )

> Expression by using the Production Cost and Revenue of the Sales

(model) query subject

Page 24: Cognos FM - Symposium paper

Embedded calculations that use the calculated aggregation type

> Use Production Cost and Revenue of the Sales measure dimension

Page 25: Cognos FM - Symposium paper

Query subjects that can cause a metadata caching conflict

> Looks for factors that override cached metadata, such as data source query

subjects whose SQL has been modified or query subjects that contain

calculations or filters

Page 26: Cognos FM - Symposium paper

Q & A