Creating Cubes in Multidimensional Modeling

This document outlines the process of creating and configuring cubes within SQL Server Analysis Services (SSAS) using multidimensional modeling techniques. Cubes are fundamental to dimensional modeling, providing a multidimensional view of data for analysis and reporting.

Note: Before creating cubes, ensure you have a well-defined data source view and have designed your dimensions and measures appropriately.

Steps to Create a Cube

You can create a cube using SQL Server Data Tools (SSDT) or directly through Management Studio, though SSDT is the primary tool for development.

Using SQL Server Data Tools (SSDT)

  1. Open your Analysis Services project in SSDT.

    If you don't have a project, create a new one of type "Analysis Services Project".

  2. Add a new Cube.

    Right-click on the "Cubes" folder in Solution Explorer and select "New Cube...". This will launch the Cube Wizard.

  3. Choose a creation method.

    You can choose to create a cube from existing tables in your data source view (recommended for most scenarios) or create a blank cube to define manually.

    • From existing tables: The wizard will guide you through selecting fact tables and related dimension tables.
    • From existing dimension/measure groups: If you've already defined these, you can use them.
    • Blank Cube: For advanced users who want to build from scratch.
  4. Define the Fact Table and Dimensions.

    If you chose "From existing tables", select your primary fact table. The wizard will then suggest related tables as dimensions. Review and confirm these relationships.

  5. Select Measures.

    Choose the columns from your fact table that you want to expose as measures. You can also define aggregation functions (SUM, COUNT, AVG, etc.).

  6. Name the Cube and Cube Fields.

    Provide a meaningful name for your cube and its associated measure groups, dimensions, and hierarchies.

  7. Complete the Wizard.

    Review the summary and click "Finish" to create the cube structure.

Configuring the Cube (After Wizard)

Once the cube is created, you can further configure it in the Cube Designer:

Best Practices for Cube Creation

Important: After creating or modifying a cube, you must deploy and process the Analysis Services project for the changes to take effect and for the data to be loaded into the cube.

Related Topics