Attribute Discretization: Using the "Equal Areas" Method - Page 5

May 14, 2009

Browse the Newly Discretized Attribute with the Dimension Browser

1.  Click the Browser tab in the Dimension Designer, once again.

2.  Ensure that Birth Date has remained selected in the Hierarchy selector atop the Browser tab.

3.  Click the Reconnect button atop the tab, as shown in Illustration 13.

Partial Browser View - before Reconnecting
Illustration 13: Partial Browser View - before Reconnecting

The browser details update, and (assuming the All Customers level remains expanded in the browser), we see twelve groups appear, as depicted in Illustration 14.

The Discretized Attribute Member’s Groups
Illustration 14: The Discretized Attribute Member’s Groups

The groups (ordered date ranges) appear, as expected. Twelve groups have been created, based upon the algorithm employed by the Equal Areas discretization method.

Browse the Newly Discretized Attribute with the Cube Browser

Let’s go one step further and examine the results of our selection of the Equal Areas method from another practical perspective, that of the cube browser. This will give us an appreciation for the improvements seen by the information consumers in querying / analyzing from the affected data.

1.  Within the Solution Explorer, once again, right-click the Basic cube (expand the Cubes folder as necessary).

2.  Click Open on the context menu that appears, as shown in Illustration 15.

Opening the Cube via the Cube Designer
Illustration 15: Opening the Cube via the Cube Designer ...

The tabs of the Cube Designer open and we arrive, by default, at the Cube Structure tab.

3.  Click the Browser tab.

4.  Click the Reconnect button atop the tab.

5.  In the Metadata pane, expand the Customer dimension by clicking the “+” sign to its immediate left.

6.  Expand the newly exposed Demographic folder.

7.  Right-click the Birth Date attribute within the expanded Demographic folder.

8.  Select Add to Row Area from the context menu that appears, as depicted in Illustration 16.

Adding the Birth Date Attribute to the Browser Row Area
Illustration 16: Adding the Birth Date Attribute to the Browser Row Area ...

We see all twelve Birth Date buckets appear in the rows of the browser pane.

9.  Click and drag the Full Name attribute to the immediate right of the physical column containing the newly placed Birth Date buckets (a line will form at the drop point), juxtaposing the Customer Names on rows to the immediate right of the Birth Dates, as shown in Illustration 17.

Juxtaposing the (Customer) Full Name alongside the Birth Date Groups in Rows
Illustration 17: Juxtaposing the (Customer) Full Name alongside the Birth Date Groups in Rows ...

All twelve ranged Birth Date buckets continue to appear in the rows of the browser pane – with “+” sign “expand” buttons appearing to the immediate left of the bucket labels.

10.     Expand the 1960-12-10 00:00:00 – 1963-08-11 00:00:00 Birth Date bucket by clicking the “+” sign to the immediate left of its label.

The selected Birth Date bucket expands, revealing a list of the customer members whose Birth Dates place them within the time range defined for the bucket, as partially depicted in Illustration 18.

Selected Birth Date Bucket (Partial View), Expanded to Show Membership
Illustration 18: Selected Birth Date Bucket (Partial View), Expanded to Show Membership

In what is but one example of how we can use the Birth Date buckets, we can see lists of customers grouped by Birth Date ranges for each of the twelve buckets we have created via Equal Areas discretization. We tell our client colleagues that they might use this arrangement to do far more than present lists of the members of the various strata. They might also flesh out the browser with other dimension members (such as Calendar Years, etc.), drop in various measures (such as Internet Sales and the like), and perform analysis (as another simple example) upon customer Birth Date when viewed within the perspective of the sales attributed to those customers.

Having demonstrated the potential effects that we can achieve using Equal Areas discretization, we turn the development environment over to the client representatives with which we have worked. Our colleagues express satisfaction with our efforts, and state that they grasp the concepts adequately to apply Equal Areas discretization to other attributes within their cube.

11.  Experiment further within the browser, as desired.

12.  Select File -> Exit to leave the design environment, when ready, and to close the Business Intelligence Development Studio.

Conclusion

In this article, we continued our exploration of attributes in Analysis Services, this time with the objective of introducing, and gaining some hands-on exposure to setting up, one of the multiple pre-defined discretization methods supported within the Analysis Services UDM. We first discussed the options that are available, and then chose to work with Equal Areas discretization in the sample cube, to meet the business requirements of a hypothetical client. (We noted that, in individual articles designed specifically for the purpose, we examine the setup of other discretization options, in a manner similar to the one we took here, gaining hand-on exposure to the use of those options in individual practice scenarios.)

Our examination included a brief, general review of the purpose of attribute discretization, potential benefits that accrue from discretization in our UDMs, and how the process can help us to meet the primary objectives of business intelligence. We performed an overview of the multiple pre-defined discretization processes supported within the Analysis Services UDM. We then began our practice session with an inspection, via the browser in the Dimension Designer, of the contiguous members of a select attribute hierarchy, noting the absence of grouping and discussing shortcomings of this default arrangement.

Next, we enabled the Equal Areas discretization method within the dimension attribute Properties pane. We then reprocessed the sample cube with which we were working to enact the new Equal Areas discretization of the select attribute members. Finally, we performed further inspections, via the Dimension Designer and Cube Designer browsers, of the members of the attribute hierarchy involved in the request for assistance by our hypothetical client, noting the new, more intuitive grouping established by the newly enacted Equal Areas discretization method.

About the MSSQL Server Analysis Services Series

This article is a member of the series Introduction to MSSQL Server Analysis Services. The series is designed to provide hands-on application of the fundamentals of MS SQL Server Analysis Services (“Analysis Services”), with each installment progressively presenting features and techniques designed to meet specific real-world needs. For more information on the series, please see my initial article, Creating Our First Cube. For the software components, samples and tools needed to complete the hands-on portions of this article, see Usage-Based Optimization in Analysis Services 2005, another article within this series.

» See All Articles by Columnist William E. Pearson, III

Introduction to MSSQL Server Analysis Services Series
Introduction to Security in Analysis Services
Cube Storage: Planning Partitions from a SQL Server Management Studio Perspective
Cube Storage: Planning Partitions (Business Intelligence Development Studio Perspective)
Cube Storage: Introduction to Partitions
Introduction to Cube Storage
Attribute Discretization: Customize Grouping Names
Attribute Discretization: Using the "Clusters" Method
Attribute Discretization: Using the "Equal Areas" Method
Attribute Discretization: Using the Automatic Method
Introduction to Attribute Discretization
More Exposure to Settings and Properties in Analysis Services Attribute Relationships
Attribute Relationships: Settings and Properties
Introduction to Attribute Relationships in MSSQL Server Analysis Services
Attribute Member Values in Analysis Services
MSSQL Analysis Services - Attribute Member Names
Attribute Member Keys - Pt II: Composite Keys
Attribute Member Keys - Pt 1: Introduction and Simple Keys
Dimension Attributes: Introduction and Overview, Part V
Dimension Attributes: Introduction and Overview, Part IV
Dimension Attributes: Introduction and Overview, Part III
Dimension Attributes: Introduction and Overview, Part II
Dimension Attributes: Introduction and Overview, Part I
Dimensional Model Components: Dimensions Part II
Dimensional Model Components: Dimensions Part I
Manage Unknown Members in Analysis Services 2005, Part II
Manage Unknown Members in Analysis Services 2005, Part I
Alternatively Sorting Attribute Members in Analysis Services 2005
Introduction to Linked Objects in Analysis Services 2005
Distinct Counts in Analysis Services 2005
Positing the Intelligence: Conditional Formatting in the Analysis Services Layer
Administration and Optimization: SQL Server Profiler for Analysis Services Queries
Mastering Enterprise BI: Time Intelligence Pt. II
Mastering Enterprise BI: Time Intelligence Pt. I
Design and Documentation: Introducing the Visio 2007 PivotDiagram
Actions in Analysis Services 2005: The URL Action
Actions in Analysis Services 2005: The Drillthrough Action
Mastering Enterprise BI: Introducing Actions in Analysis Services 2005
Mastering Enterprise BI: Introduction to Translations
Mastering Enterprise BI: Introduction to Perspectives
Introduction to the Analysis Services 2005 Query Log
Mastering Enterprise BI: Working with Measure Groups
Mastering Enterprise BI: Introduction to Key Performance Indicators
Mastering Enterprise BI: Extend the Data Source with Named Calculations, Pt. II
Mastering Enterprise BI: Extend the Data Source with Named Calculations, Pt. I
Process Analysis Services Objects with Integration Services
Usage-Based Optimization in Analysis Services 2005
Introduction to MSSQL Server Analysis Services: Named Sets Revisited
Introduction to MSSQL Server Analysis Services: Migrating an Analysis Services 2000 Database to Analysis Services 2005
Introduction to MSSQL Server Analysis Services: Introducing Data Source Views
Introduction to MSSQL Server Analysis Services: Reporting Options for Analysis Services Cubes: MS Excel 2003 and More ...
Introduction to MSSQL Server Analysis Services: Mastering Enterprise BI: Create Aging "Buckets" in a Cube
Introduction to MSSQL Server Analysis Services: Mastering Enterprise BI: Relative Time Periods in an Analysis Services Cube, Part II
Introduction to MSSQL Server Analysis Services: Mastering Enterprise BI: Relative Time Periods in an Analysis Services Cube
Introduction to MSSQL Server Analysis Services: Process Analysis Services Cubes with DTS
Introduction to MSSQL Server Analysis Services: Presentation Nuances: CrossTab View - Same Dimension
Introduction to MSSQL Server Analysis Services: Point-and-Click Cube Schema Simplification
Introduction to MSSQL Server 2000 Analysis Services: Manage Distinct Count with a Virtual Cube
Introduction to MSSQL Server 2000 Analysis Services: Distinct Count Basics: Two Perspectives
Introduction to MSSQL Server 2000 Analysis Services: Semi-Additive Measures and Periodic Balances
Introduction to MSSQL Server 2000 Analysis Services: Performing Incremental Cube Updates - An Introduction
Introduction to MSSQL Server 2000 Analysis Services: Partitioning a Cube in Analysis Services - An Introduction
Introduction to MSSQL Server 2000 Analysis Services: Basic Storage Design
Introduction to MSSQL Server 2000 Analysis Services: Derived Measures vs. Calculated Measures
Introduction to MSSQL Server 2000 Analysis Services: Creating a Dynamic Default Member
Introduction to MSSQL Server 2000 Analysis Services: Another Approach to Local Cube Design and Creation
Introduction to MSSQL Server 2000 Analysis Services: Introduction to Local Cubes
Introduction to MSSQL Server 2000 Analysis Services: Actions in Virtual Cubes
Introduction to MSSQL Server 2000 Analysis Services: Putting Actions to Work in Regular Cubes
Introduction to MSSQL Server 2000 Analysis Services: Reporting Options for Analysis Services Cubes: ProClarity Part II
Introduction to MSSQL Server 2000 Analysis Services: Reporting Options for Analysis Services Cubes: ProClarity Professional, Part I
Introduction to MSSQL Server 2000 Analysis Services: Using Calculated Cells in Analysis Services , Part II
Introduction to MSSQL Server 2000 Analysis Services: Using Calculated Cells in Analysis Services, Part I
Introduction to MSSQL Server 2000 Analysis Services: MSAS Administration and Optimization: Toward More Sophisticated Analysis
Introduction to MSSQL Server 2000 Analysis Services: MSAS Administration and Optimization: Simple Cube Usage Analysis
Introduction to MSSQL Server 2000 Analysis Services: Build a Web Site Traffic Analysis Cube: Part II
Build a Web Site Traffic Analysis Cube: Part I
Reporting Options for Analysis Services Cubes: Cognos PowerPlay
Reporting Options for Analysis Services Cubes: MS FrontPage 2002
Reporting Options for Analysis Services Cubes: MS Excel 2002
Introduction to MSSQL Server 2000 Analysis Services: Drilling Through to Details: From Two Perspectives
Introduction to MSSQL Server 2000 Analysis Services: Custom Cubes: Financial Reporting - Part II
Introduction to MSSQL Server 2000 Analysis Services Custom Cubes: Financial Reporting (Part I)
Introduction to SQL Server 2000 Analysis Services: Exploring Virtual Cubes
Introduction to SQL Server 2000 Analysis Services: Working with the Cube Editor
Introduction to SQL Server 2000 Analysis Services: Parent-Child Dimensions
Introduction to SQL Server 2000 Analysis Services: Handling Time Dimensions
Introduction to SQL Server 2000 Analysis Services: Working with Dimensions
Introduction to SQL Server 2000 Analysis Services: Creating Our First Cube








The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers