Chapter 12 – Additional Cube and Dimension Configurations

📚 Chapter 12 – Additional Cube and Dimension Configurations

1️⃣ Advanced Analytical Features

Actions (Extending the Analytical Surface)

Actions give SSAS cubes the capability to drill down into granular dimensional records or interface with external tools and web applications directly from client reporting software like Microsoft Excel or Power BI. There are three primary action types:

  • URL Actions: Dynamically injects dimensional member coordinates (e.g., [DimTitles].[Title].CurrentMember.Member_Caption) into a target URL query string to launch an external web search or execute an internal web application.

  • Drillthrough Actions: Emits a targeted query back to the server to return granular dimensional attributes and related fact columns behind a specific summarized cell (e.g., viewing underlying invoice numbers and titles behind an aggregated sales quantity).

  • Report Actions: Directly links an active cube cell to a SQL Server Reporting Services (SSRS) or paginated report endpoint, passing current dimensional coordinates as report parameters.

Perspectives (Virtual Viewports)

  • Acts as a logical subset of a cube by filtering visible measures, dimensions, and hierarchies to simplify navigation for specific business departments (e.g., an OnlySales perspective).

  • Security Notice: Perspectives do not serve as a security boundary. A user with access to the cube inherently has access to all perspectives within that cube. Enforcing restricted data access requires independent security roles or separate cubes.


2️⃣ Partition Architecture & Storage Topologies

Why Partition Cubes?

Fact tables can be split into multiple physical storage folders (e.g., separating Fact Sales 1994 from Fact Sales Older than 1994):

  • Accelerates processing by loading only the active or modified historical periods.

  • Enables dedicated storage allocation across separate hard drives or RAID arrays to eliminate disk I/O contention with the operating system.

  • Concentrates pre-calculated aggregations on heavily queried historical periods while leaving inactive historical data un-aggregated.

Storage Modes (MOLAP, HOLAP, ROLAP)

Storage Mode Leaf Values (Rows) Aggregations (Sums) Metadata
MOLAP SSAS Folder SSAS Folder SSAS Folder
HOLAP Relational DW SSAS Folder SSAS Folder
ROLAP Relational DW Relational DW SSAS Folder
  • MOLAP (Multidimensional OLAP): The default and recommended configuration. Both raw leaf-level data and pre-aggregated totals are stored inside proprietary, highly compressed SSAS directory structures, delivering maximum query performance.

  • HOLAP (Hybrid OLAP): Leaves raw atomic rows inside the relational data warehouse while storing pre-aggregated totals in the SSAS folder structure. Ideal for high-level dashboard metrics where leaf-level detail is rarely requested.

  • ROLAP (Relational OLAP): Retains both leaf data and aggregations inside the relational engine. SSAS bypasses local multidimensional storage and translates incoming MDX queries into live T-SQL statements against the source database, providing real-time data access at the expense of query speed.

Proactive Caching

  • Connects MOLAP speed with automated real-time data updates.

  • Listens for changes in the relational warehouse using SQL notifications, polling jobs, or database triggers, automatically updating the multidimensional cache when modifications occur.

  • Managed via Silence Intervals (seconds of database inactivity required before processing starts) and Silence Override Intervals (maximum latency before processing is forced).


3️⃣ Storage Aggregation Tuning

Pre-calculated mathematical summaries stored on disk are known as Aggregations. By default, a newly deployed cube does not store pre-calculated aggregations.

  • The Aggregation Design Wizard: Analyzes dimension attribute counts and uses cost/benefit algorithms to determine which level combinations yield the greatest performance improvement.

  • Diminishing Returns Principle: Pre-calculating a small subset of aggregations (often reaching a 30% to 55% optimization target) answers the majority of user queries. Designing 100% of all possible aggregations causes explosive storage growth and prolongs batch processing windows.


4️⃣ Specialized Dimensional Design Patterns

Parent-Child Dimensions

  • Formed from self-referencing tables where an entity references another entity in the same table (e.g., DimEmployees.ManagerKey referencing DimEmployees.EmployeeKey).

  • Usage = Parent: Setting the parent key attribute’s Usage property to Parent prompts SSAS to automatically construct a ragged, multi-level hierarchy without requiring manual level design.

  • Hierarchy display names can be formatted using properties like Naming Template (e.g., Mgr; Asst Mgr; Emp) and MembersWithDataCaption.

Role-Playing Dimensions

  • Occurs when a single physical dimension in the relational warehouse plays multiple distinct business roles within the same cube.
  • Example: DimDates is referenced three separate times in FactOrders via OrderDateKey, RequiredDateKey, and ShippedDateKey.

  • SSAS creates three independent cube dimensions (Order Date, Required Date, Shipped Date) that map back to the single shared DimDates table.

Referenced (Snowflake) Dimensions

  • Connects an outer snowflake dimension to a fact table indirectly through an intermediate dimension table.

  • Example: DimCategories does not possess a direct foreign key in FactOrders; it connects indirectly through DimProducts (Intermediate dimension = DimProducts, joining on CategoryKey).


5️⃣ Walkthrough of Hands-On Exercises

Exercise 12-1: Live Mode Administrative Renaming

  1. Launch Visual Studio as Administrator.

  2. Open a direct live administrative connection: File > Open > Analysis Services Database…

  3. Enter the server name (e.g., localhost or your named instance) and connect directly to PubsBICubes.

  4. In Solution Explorer, right-click DWPubsSalesVer1 $\rightarrow$ Rename $\rightarrow$ change the cube name to CubePubsSales.

  5. Launch SQL Server Management Studio (SSMS), connect to Analysis Services, expand PubsBICubes > Cubes, and verify that the deployed cube displays as CubePubsSales.


References & Further Reading

  • Primary Course Text:
    Root, R., & Mason, C. (2012). Chapter 12: Additional Cube and Dimension Configurations. In Pro SQL Server 2012 BI Solutions (pp. 483–528).

  • Advanced Cube Optimization:
    Ferrari, A., Russo, M., & Webb, C. (2009). Expert Cube Development with Microsoft SQL Server 2008 Analysis Services. Packt Publishing.

  • Server Administration & Architecture:
    Gorbach, I., Berger, A., & Melomed, E. (2009). Microsoft SQL Server 2008 Analysis Services Unleashed. Sams Publishing.