Microsoft Docs

Design Multidimensional Models

This document provides a comprehensive guide to designing and implementing multidimensional models in SQL Server Analysis Services (SSAS). Multidimensional models, often referred to as OLAP cubes, are built on a foundation of fact tables and dimension tables, enabling efficient analysis of large datasets.

Core Concepts

Understanding the fundamental components of a multidimensional model is crucial for effective design:

Steps to Design a Multidimensional Model

1. Define Business Requirements

Before you start designing, clearly understand the business questions the model needs to answer. Identify key performance indicators (KPIs) and the dimensions that will provide context.

2. Identify Data Sources

Determine the relational databases or other data sources that contain the raw data for your facts and dimensions. Ensure data quality and consistency.

3. Design the Schema

Design your star or snowflake schema in the relational database that will serve as the source for your Analysis Services project. A well-designed source schema is fundamental to a performant cube.

4. Create a New Analysis Services Project

Use SQL Server Data Tools (SSDT) for Visual Studio to create a new Analysis Services Multidimensional and Tabular project.

5. Create Data Sources and Data Source Views

Configure the connection to your relational data source and create a Data Source View (DSV). The DSV provides a logical abstraction over the physical data sources, allowing you to define relationships, rename objects, and perform basic transformations.

6. Design Dimensions

Create dimensions based on your identified business dimensions. Define attributes, hierarchies, and attribute relationships. Consider using features like:

7. Design Measures and Measure Groups

Define your measures and organize them into measure groups. Configure aggregation functions (e.g., SUM, COUNT, AVG) for each measure.

Consider using Key Performance Indicators (KPIs) to highlight important metrics and their status.

8. Design the Cube Structure

Assemble your dimensions and measure groups into a cube. Configure cube properties, actions, and perspectives to tailor the analytical experience.

9. Deployment and Processing

Deploy your multidimensional model to an Analysis Services instance. Process the cube to load data from the data source into the multidimensional structure.

10. Testing and Iteration

Thoroughly test your model using client tools like Excel or Power BI. Gather feedback and iterate on the design to meet evolving business needs.

Best Practices