Working with the Business to Build Effective Dimensional...

39
Working with the Business to Build Effective Dimensional Models Copyright 2009 StarSoft Solutions, Inc. Page 1 Copyright 2009 StarSoft Solutions, Inc. Slide 1 Laura L. Reeves Laura L. Reeves Co Co- Founder & Principal Founder & Principal April, 2009 April, 2009 Working with the Working with the Business to Build Business to Build Effective Effective Dimensional Models Dimensional Models Instructor Information: Laura L. Reeves, co-author of The Data Warehouse Lifecycle Toolkit has over 22 years of experience in end to end data warehouse development focused on developing comprehensive project plans, collecting business requirements, developing Business Dimensional Models, database schemas (both star and snowflake designs), and development of enterprise data warehouse strategies. As StarSoft Solutions co-founder, Laura has implemented data warehouses for many business functions for private and public industry. Laura L. Reeves 1163 East Ogden Ave. Suite 705-369 Naperville, IL 60563 Phone: 630.369.2787 FAX: 630.369.4740 [email protected]

Transcript of Working with the Business to Build Effective Dimensional...

Page 1: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 1

Copyright 2009 StarSoft Solutions, Inc. Slide 1

Laura L. ReevesLaura L. ReevesCoCo--Founder & PrincipalFounder & PrincipalApril, 2009April, 2009

Working with the Working with the Business to BuildBusiness to BuildEffective Effective Dimensional ModelsDimensional Models

Instructor Information:

• Laura L. Reeves, co-author of The Data Warehouse Lifecycle Toolkit has over 22 years of experience in end to end data warehouse development focused on developing comprehensive project plans, collecting business requirements, developing Business Dimensional Models, database schemas (both star and snowflake designs), and development of enterprise data warehouse strategies. As StarSoft Solutions co-founder, Laura has implemented data warehouses for many business functions for private and public industry.

Laura L. Reeves

1163 East Ogden Ave.

Suite 705-369

Naperville, IL 60563

Phone: 630.369.2787

FAX: 630.369.4740

[email protected]

Page 2: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 2

Copyright 2009 StarSoft Solutions, Inc. Slide 2

TopicsTopics

• Introducing the technique The Business Dimensional Model (BDM)

• BDM fundamentals

• Translating the BDM

• More BDM notation

• Putting it all together

Page 3: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 3

Copyright 2009 StarSoft Solutions, Inc. Slide 3

Disconnect betweenDisconnect betweenBusiness and ITBusiness and IT

• Business Perspective IT does not deliver

what we need

Build solutions ourselves

• IT Perspective Business can’t tell us what they really

want

Build it for them and expect them to use it

• May get lucky and meet short term needs, but usually limits long term success

Page 4: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 4

Copyright 2009 StarSoft Solutions, Inc. Slide 4

Building a BridgeBuilding a Bridge

• Gather broad requirements

• Partner to create the data model

• Work in business terms

• Keep technology out of the discussion

Page 5: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 5

Copyright 2009 StarSoft Solutions, Inc. Slide 5

The Purpose of The Purpose of Dimensional ModelsDimensional Models

• End user access Ease of use Query performance

• Delivered through a variety of technologies Relational database

– Star or snowflake schemas Multi-dimensional database

– Cube Other proprietary databases

– Columnar– DW appliance

• Dimensional modeling for end user access has been effective for more than two decades. These models are being supported by data access and database software products. Great improvements are being made regularly for improved performance, increased scalability and increased functionality.

Page 6: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 6

Copyright 2009 StarSoft Solutions, Inc. Slide 6

The Modeling TechniqueThe Modeling Technique

• The Business Dimensional ModelTM

• Reflect data model visually and in business terms

• Ensures support for various types of reporting and analysis

• Independent of technology

• Ideal training tool for use later

• Manageable approach to complex environments

DAY

Month

Quarter

Year

• The Business Dimensional Modeling technique was developed by StarSoft Solutions, Inc. Although this is a trademarked approach, there are no licensing fees or permissions needed to use it. All we ask is that if you choose to utilize this approach that you include a trademark reference (Business Dimensional Lifecycle is a trademark of StarSoft Solutions, Inc.).

• Overall, use any technique that is effective for you and your organization. Just make sure that all of the design objectives are covered.

Page 7: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 7

Copyright 2009 StarSoft Solutions, Inc. Slide 7

Basics of DimensionsBasics of Dimensions

• Dimensions are major business categories or groupings to describe business data

• Dimensions contain: Descriptive elements Reference data Attributes, hierarchies, drill paths

• Dimensions are used for: Selection criteria Report labels Pick list via interface

• Dimensions are what provide the users with the flexibility and variety of ways to slice, group and organize the data. You should try to provide as many attributes as you can in the dimensions. If the data source you are extracting from has only minimal descriptive data, look for other reference sources to use.

Page 8: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 8

Copyright 2009 StarSoft Solutions, Inc. Slide 8

Fiscal

Week

Fiscal

Month

Fiscal

Quarter

Fiscal Year

Day

Calendar

Month

Calendar

Quarter

Calendar

Year

Day of

Week

Week

Holiday

AttributesAttributes

FutureFutureAttributeAttribute

Grain for this DimensionGrain for this Dimension

MultipleMultipleHierarchiesHierarchies

Date Dimension ExampleDate Dimension Example

• The Business Dimensional Modeling notation reflects the lowest possible grain with a shaded box, visually located at the bottom of the page.

• Relationships between attributes are reflected with an arrow. Do not be concerned that there are no ‘crows feet’. The business folks will not notice, but the arrow head on line represents a ‘many’ relationship. Most dimensional relationships are one to many.

• Each hierarchy is represented visually moving upwards.

• Other attributes fill in any remaining open space. Try to keep the overall diagram to be balanced.

Page 9: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 9

Copyright 2009 StarSoft Solutions, Inc. Slide 9

Complete Dimension Complete Dimension DocumentationDocumentation

Wednesday, SaturdayAttribute to indicate the calendar day of week.Day of Week

Week Ending 11/21/1998The calendar week ending Saturday and is used for reporting purposes.Week

CY 2003The calendar year used for reporting purposes.Calendar Year

CY 2003-Q1, CY 2003-Q2The calendar quarter used for reporting purposes.Calendar Quarter

March 2003, October 2003The calendar month used for reporting purposes.Calendar Month

FY 2003The year that this date rolls up to based upon the company’s fiscal calendar.Fiscal Year

FY 2003-Q1, FY 2003-Q2The quarter of the fiscal year that this date rolls up to and is used for reporting purposes.

Fiscal Quarter

FY 2003-10, FY 2003-11The month of the fiscal year that this date rolls up to and is used for reporting purposes.

Fiscal Month

FY 2003 Week 16The week of the fiscal year that the date rolls up to and is used for reporting purposes.

Fiscal Week

Memorial Day, President’s DayThis is a future attribute to indicate that this date is considered a U.S. business day off.

Holiday

6/31/2003, 9/1/2003Calendar day information was reported on.Day

SAMPLE VALUESBRIEF DESCRIPTIONATTRIBUTE NAME

Page 10: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 10

Copyright 2009 StarSoft Solutions, Inc. Slide 10

Basics of FactsBasics of Facts

• Facts are the basic business events that are measured and monitored

• Facts are typically: ‘Amounts’ and ‘Counts’

Defined by more than one dimension

Numeric (frequently, but not always)

• Facts are used as: Body of reports

Part of calculations

• The facts are the heart of the entire system. This is where it all comes together. These are the fundamental measurements of the business. You must ensure that you determine the lowest level of detail that is possible for these facts. Once the data is loaded, You can always roll up the facts to many different levels. However, it is much more difficult to break the numbers down at query time.

Page 11: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 11

Copyright 2009 StarSoft Solutions, Inc. Slide 11

Sales Fact Group ExampleSales Fact Group Example

PromoPromo

DateDay

OutletStore

ProductItem

Sales

Dimension NameDimension Name

Grain for the Grain for the Fact Group for Fact Group for this Dimensionthis Dimension

Name ofName ofFact GroupFact Group

Facts:DollarsUnitsPriceCost

• We see here that the name of the facts included in this group is in the center of the diagram. Each dimension that applies to this fact group is shown in the circles surrounding the center. The specific name of the dimension and the level of detail is included for each dimension.

Page 12: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 12

Copyright 2009 StarSoft Solutions, Inc. Slide 12

Complete Fact Group Complete Fact Group DocumentationDocumentation

AverageThe standard price factor for this item sold at this store.

Cost

AverageThe actual price charged for this sale.

Price

SumThe number of consumer units sold.

Units

SumThe dollar amount for the Units Sold.

Dollars

AGGREGATION RULE

FACT DEFINITIONFACT NAME

Page 13: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 13

Copyright 2009 StarSoft Solutions, Inc. Slide 13

Dimensional Model Dimensional Model --The Star SchemaThe Star Schema

Media

Discount

Deal

Promo Descr

PROMO KEY

Package

Flavor

Size

Product Descr

PRODUCT KEY

Cost

Price

Units

Dollars

DATE KEY

PROMO KEY

STORE KEY

PRODUCT KEY

Fiscal Period

Holiday

Weekday

Day

DATE KEY

Zone

Region

District

Store Name

STORE KEY

Product Dimension

Promotion Dim.

Fact Table

Outlet Dimension

Date Dimension

• Dimensional Model - A data model organized for the purposed of user understandability and high performance. In a relational database, a dimensional model is a star join schema characterized by a central fact table with a multi-part key. The components of this key are joined to a set of dimension tables, each defined by their own primary keys. In Multi-dimensional database, a dimensional model is the database cube.

• Star Schema - An organization of tables in a relational database with a single central “fact” table possessing a multi-part key, together with a set of surrounding “dimension” tables each possessing their own primary keys. The fact table usually represents a set of measurements or “facts”supplied by an operational computer system. The most useful facts are numeric and additive. The dimensional tables are usually populated with text or text-like attributes describing specific entities like products or customers.

Page 14: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 14

Copyright 2009 StarSoft Solutions, Inc. Slide 14

A BDMA BDMCase StudyCase Study

Page 15: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 15

Copyright 2009 StarSoft Solutions, Inc. Slide 15

BDM Example:BDM Example:Period Dimension Period Dimension

Fiscal

Week

Fiscal

Month

Fiscal

Quarter

Fiscal Year

Day

Calendar

Month

Calendar

Quarter

Calendar

Year

Day of

Week

Week

Holiday

• Now, we will walk through a sample Business Dimensional Model for a telecommunications outsourcing business. Then we will look at the resulting logical table structures.

Page 16: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 16

Copyright 2009 StarSoft Solutions, Inc. Slide 16

BDM Example: BDM Example: Call Center DimensionCall Center Dimension

Time

Zone

Open Date

Call Center

Region

Division

Call Center

City

Call Center

State

• The Tel-Sell Call Center Dimension is represent by this slide and has a very simple hierarchy. This shows how the individual call centers are described and their organizational structure.

Page 17: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 17

Copyright 2009 StarSoft Solutions, Inc. Slide 17

BDM Example:BDM Example:Employee DimensionEmployee Dimension

Educ.

Level

Employee

Supervisor

Manager

Hire Date

Date of Birth

• The Employee Dimension is represented by this slide and again it was very straightforward. Since employees move around the organization regularly, this needed to be separate from the call center information.

Page 18: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 18

Copyright 2009 StarSoft Solutions, Inc. Slide 18

BDM Example: BDM Example: Client DimensionClient Dimension

Program

Type

Account

Executive

Program

Client

Corporate

Parent

Client

City

Client

State

• The Tel-Sell Client Dimension is represented by this slide and begins tobring in complexity. This represents the clients and the individual programs that are run, ranging from 30 days to more than 1 year in length.

Page 19: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 19

Copyright 2009 StarSoft Solutions, Inc. Slide 19

BDM Example: BDM Example: Call Status DimensionCall Status Dimension

Call Disposition

Disposition

Type

Disposition

Group

Disposition

Assigned By

• The Tel-Sell Call Status Dimension is actually a very complex dimension although the hierarchy is quite simple. This dimension represents the possible results from an individual call (sold a product, got a busy signal etc..) The challenge comes in with identifying the specific elements within each attribute level. A lot of discussion was centered here. This dimension actually contains a series of hierarchies that have different levels of detail. Each of these hierarchies would end at a different level. Combined with the multiple ways that the detailed call dispositions are combined, a simple hierarchy was agreed upon. This allows endless possibilities for standard and custom groupings of the call dispositions.

Page 20: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 20

Copyright 2009 StarSoft Solutions, Inc. Slide 20

BDM Example: BDM Example: Activities DimensionActivities Dimension

Task

Task

Group

Task Category

Billable Flag

• The Activity Dimension represents how employees spend their time. Since employee costs are the highest percentage of overall costs, it is critical to understand how individual customer service representatives spend their time. For example, on the phone (in this case this is the desired behavior!), in training or on break.

Page 21: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 21

Copyright 2009 StarSoft Solutions, Inc. Slide 21

BDM Example: BDM Example: Calls Fact GroupCalls Fact Group

Call CenterCall Center

Call StatusCall Disposition

EmployeeEmployee

PeriodDay

ClientProgram

Calls

ActivitiesN/A

Facts:# of CallsCall Minutes

• Facts about calls are described by all of the dimensions except Activities.

Page 22: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 22

Copyright 2009 StarSoft Solutions, Inc. Slide 22

BDM Example: BDM Example: Hours Worked Fact GroupHours Worked Fact Group

Call CenterCall Center

ActivitiesTask

EmployeeEmployee

PeriodDay

ClientProgram

HoursWorked

Call StatusN/A

Facts:Regular HoursOvertime Hours

• Facts about hours worked are described by all of the dimensions except call status.

Page 23: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 23

Copyright 2009 StarSoft Solutions, Inc. Slide 23

Using the ModelUsing the Model

• What are the total number of hours worked to date for people who were hired this year?

• What are the total number of hours worked by fiscal year and call center region?

• What are the total calling minutes by call disposition grouped by category?

• What are the average number of calls for client “Our Biggest Customer” by fiscal week?

Does the BDM support the following questions?

• What are the total number of hours worked to date for people who were hired this year?

• What are the total number of hours worked by fiscal year and call center region?

• What are the total calling minutes by call disposition grouped by category?

• What are the average number of calls for client “Our Biggest Customer”by fiscal week?

Page 24: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 24

Copyright 2009 StarSoft Solutions, Inc. Slide 24

Translating Translating the BDMthe BDM

Page 25: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 25

Copyright 2009 StarSoft Solutions, Inc. Slide 25

Implementation of BDMImplementation of BDM

• Exploit the DB and BI tools

• Technical design driven by tools BI Tool is the user’s only

perspective of the DW

Database technology helps determine data structure design

• Every tool has its own unique requirements, recommendationsand/or preferences

• Don’t lose any sleep over your desire to develop the independent data model – I can assure you that if you change technologies in the future, the dimensions will be the least of your concerns. Yes, there will be some effort to split apart or consolidate a dimension, but the hard work is finding and populating those attributes to begin with! Also, the effort to convert your systems created applications AND all of the user created queries will be a much bigger challenge than re-configuring the dimension table structure!

Page 26: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 26

Copyright 2009 StarSoft Solutions, Inc. Slide 26

BDM Example: BDM Example: Calling Facts Star SchemaCalling Facts Star Schema

Call Center Fact Table

Manager

Supervisor

Educ. Level

Date Of Birth

Hire Date

Employee Name

EMPLOYEE KEY

Employee Table

Calendar Year

Calendar Quarter

Calendar Month

Fiscal Year

Fiscal Quarter

Fiscal Month

Fiscal Week

Holidays

Day of Week

Day

PERIOD KEY

Period Table

Call Minutes

# of Calls

CALL CENTER KEY

EMPLOYEE KEY

CALL DISP. KEY

PROGRAM KEY

PERIOD KEY

Division

Region

Open Date

Time Zone

Call Center State

Call Center City

Call Center Name

CALL CENTER KEY

Call Center Table

Disposition Group

Disposition Type

Disposition Descr

CALL DISP. KEY

Call Status Table

Corporate Parent

Account Executive

Client State

Client City

Client

Program Type

Program Descr

PROGRAM KEY

Client Table

• Note that each dimension is represented as a single table.

Page 27: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 27

Copyright 2009 StarSoft Solutions, Inc. Slide 27

BDM Example: BDM Example: Hours Worked Star SchemaHours Worked Star Schema

Hours Worked Fact Table

Manager

Supervisor

Educ. Level

Date Of Birth

Hire Date

Employee Name

EMPLOYEE KEY

Employee Table

Calendar Year

Calendar Quarter

Calendar Month

Fiscal Year

Fiscal Quarter

Fiscal Month

Fiscal Week

Holidays

Day of Week

Day

PERIOD KEY

Period Table

Overtime Hours

Regular Hours

CALL CENTER KEY

EMPLOYEE KEY

TASK KEY

PROGRAM KEY

PERIOD KEY

Division

Region

Open Date

Time Zone

Call Center State

Call Center City

Call Center Name

CALL CENTER KEY

Call Center Table

Task Category

Task Group

Billable Flag

Task Descr

TASK KEY

Activities Table

Corporate Parent

Account Executive

Client State

Client City

Client

Program Type

Program Descr

PROGRAM KEY

Client Table

• Again each dimension is represented by a single table. Note that the Period, Employee, Client, and Call Center dimension tables are the same. This means that these dimensions are conformed.

Page 28: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 28

Copyright 2009 StarSoft Solutions, Inc. Slide 28

Too Many or Too Few Too Many or Too Few Dimensions?Dimensions?

• Practical Guidelines for a single fact table• Minimum 3 – 4 dimensions

Split dimensions that are too broad Consider enterprise view, would that split

dimensions apart? Are there more dimensions that could be

included for user benefit, but not change the number of rows in the fact table?

• Maximum 20 Dimensions Are these dimensions really separate? Walk through logical drill paths

• Selecting dimensions is sometimes difficult up front. There you sit with the file layouts from your source systems and you are trying to get started. To get started with what dimensions you will have, think about having a big pile of elements dumped on the table. Then start dividing them up, sorting them. If you had a pile of Legos, you could sort on color, type of shape (regular shapes vs. unusual parts), size of the piece. You are doing the same thing with your data elements. You may want to sort one way – creating 3 dimensions. As you try to put other elements into these dimensions, they may not fit in very well. Perhaps you have found a new dimension. Also, after you get a group of elements that you think are separate, you may see that these are simply a hierarchy for another dimension. If so, these should be combined.

• Explore what the model looks like if these dimensions are together, separate, together, separate…. One may become obvious. In some cases you may not make a final call until you have created a test database and tried to create some reports.

• Another great source to determine what really belongs together are the business users. They often have clear opinions about what makes sense to them.

• One way to get their input (without asking Do you think this is one or two dimensions?), is to walk through several scenarios. If they saw a report for the Total US and ‘drilled down’ what would they expect to see? Regions. OK, now drill again. Keep this up. These drill paths are typically within a single dimension.

• You can indeed get from the lowest level of one dimension (Sales Territory) to Sales Rep (in a separate dimension). However, the interface to a user is significantly different! From a double click (most common drill down implementation) to swapping out one attribute for another attribute. Some tools allow a drill anywhere, but again the interaction is different.

• Drill down action is a different action than changing dimensions. The user can still get the all of the data, but will it make sense?

Page 29: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 29

Copyright 2009 StarSoft Solutions, Inc. Slide 29

Characteristics of TodayCharacteristics of Today’’s s Dimensional ModelsDimensional Models

• Comprehensive and enterprise perspective drives expanded scope for models

• Models often have 25+ fact tables

15 – 30 dimensions

• Keep in mind that not all fact tables use all of the dimensions In general each fact group has 5-15

dimensions

• The days of developing a single star schema to get started are long gone. Your organization may already be on a 2nd, 3rd or 4th iteration of delivering decision support (maybe with dimensional data marts maybe not).

• The demands are great, the data volumes are enormous and the business wants it yesterday (and the vendors tell you that you can implement it all tomorrow)!

• These models can be quite complex. Most users have an interest in only a subset of the model. Very few people in the organization will ever see and/or use the whole thing.

Page 30: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 30

Copyright 2009 StarSoft Solutions, Inc. Slide 30

Developing and Expanding Developing and Expanding Dimensional ModelsDimensional Models

• Design broadly Multiple user groups for same data Next potential data sources Enterprise viewpoint

– Plan for conformed dimensions

• Implement in several increments Don’t tackle too much at one time Break into phases

– Each should deliver business value

Review and update the model each time

• Although it may take some work to get permission to develop a more comprehensive model up front, the work is well worth the effort.

• Keep yourself from designing yourself into a corner!

• Instead of having your iterations be continuous re-work of the same data until you get it right, have your iterations be implementations of the next set of valuable data. This can only be done quickly if you have done enough work up front.

Page 31: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 31

Copyright 2009 StarSoft Solutions, Inc. Slide 31

More BDM More BDM NotationNotation

Page 32: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 32

Copyright 2009 StarSoft Solutions, Inc. Slide 32

BDM Advanced NotationBDM Advanced NotationGroups of Future AttributesGroups of Future Attributes

• Unclear groups of attributes Business has not defined these yet

To come from a new operational system not designed yet

Indicates where these pieces are likely to fit into the model in the future

• We may not have all the answers when we are working on the model. In fact, we may be about done with what we can do and there may still be large areas that are not well defined.

• If these undefined areas are part of the core purpose for your project you have a BIG problem! Revisit your scope, seek out alternate data sources, work with the business (setting expectations and get their help).

• There are cases, where there may be a lot of good stuff in the future, but the users don't know yet. As long as this is beyond the immediate scope, you can note where these would fit (to the best of your knowledge at this time). This gives you a great head start when these are defined in the future. It also increases the confidence of the users that you haven’t forgotten their ideas for the future.

Page 33: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 33

Copyright 2009 StarSoft Solutions, Inc. Slide 33

BDM Advanced NotationBDM Advanced NotationDerived AttributesDerived Attributes

• Derived Attributes When there is not a business element with

an identifier at this level

Used to tie together several hierarchies– Perhaps for junk dimensions

• This can be used when we need to tie together parts of a dimension, but there is not an existing element in the data to help us. This derived attribute may be stored under the covers, the users don’t have to see this. In some cases, it would be valuable to create a description for this new element and make it available to the business community.

Page 34: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 34

Copyright 2009 StarSoft Solutions, Inc. Slide 34

BDM Advanced NotationBDM Advanced NotationTriggers for Type 2 SCDTriggers for Type 2 SCD

• Used to identify those attributes that MUST result in the creation of a new version for that row in the dimension

• Helps us determine which attributes can be type 1 and which trigger type 2

• This notation is helpful to note which attributes are critical to trigger the generation of a new version (type 2 slowly changing dimension). The shadow is intended to create the impression of multiple versions.

Page 35: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 35

Copyright 2009 StarSoft Solutions, Inc. Slide 35

BDM Notation SummaryBDM Notation Summary

Slowly Changing Attr

Attribute

Anchor Attribute

DimensionGrain

Derived Attribute

Fact Group

Future Attribute

Collection of Attributes to be Defined in the

Future

M-M Relationship

1- M Relationship

Page 36: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 36

Copyright 2009 StarSoft Solutions, Inc. Slide 36

Putting It All Putting It All TogetherTogether

Page 37: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 37

Copyright 2009 StarSoft Solutions, Inc. Slide 37

Keys to SuccessKeys to Success

• Dimensional modeling provides the basic foundation for end user access and analysis

• Focus on the business requirements and the business user’s perspective

• Designs should reflect clear business dimensions and facts

• Resulting table structures will likely be influenced by technology

Page 38: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 38

Copyright 2009 StarSoft Solutions, Inc. Slide 38

Coming soonComing soon……

Available late spring

2009

Page 39: Working with the Business to Build Effective Dimensional Modelsdownload.101com.com/pub/tdwi/Files/0409_Chicago_Chapter... · 2009. 4. 17. · Working with the Business to Build Effective

Working with the Business to Build Effective Dimensional Models

Copyright 2009 StarSoft Solutions, Inc. Page 39

Copyright 2009 StarSoft Solutions, Inc. Slide 39

1163 East Ogden Ave.Suite 705-369

Naperville, IL 60563

Phone: 630.971-3782FAX: 630.369.4740

[email protected]

Data Warehouse & Decision Support Services