Book Image

Getting Started with SQL Server 2012 Cube Development

Book Image

Getting Started with SQL Server 2012 Cube Development

Overview of this book

Analysis Services have been the number one OLAP engine for years. With the increased focus on business intelligence solutions, there is a shortage of professionals in this area. Start your journey into becoming a BI developer using the popular tools included in every SQL Server installation. Getting Started with SQL Server 2012 Cube Development teaches you through clear step-by-step exercises to create business intelligence solutions using Analysis Services. The knowledge gained through these practical examples can immediately be applied to your real-world problems. Getting Started with SQL Server 2012 Cube Development begins with an introduction to business intelligence and Analysis Services, the world's most-used cube engine. Guiding you through easy-to-understand examples to become a cube developer. Learn how to create a cube including all the advanced features such as KPIs, calculated measures, and time intelligence. Security and performance tuning will also be explored. You will learn how to perform and automate core tasks like deployment and processing. The main focus is on multidimensional cubes, but the creation of in-memory models will also be covered. You will learn everything you need to get started with cube development using SQL Server 2012.
Table of Contents (17 chapters)
Getting Started with SQL Server 2012 Cube Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding aggregations manually


You can add aggregations manually either by creating an entirely new aggregation design, or creating a new aggregation in an already created aggregation design.

To add a new aggregation to the already existing aggregation design, follow the given steps:

  1. Click the New Aggregation button in the Advanced View under Aggregations.

  2. In the A0 column check the box in front of the [Order Date].[Month], the [Order Date].[Hierarchy Order Date Calculations], and the [Product].[Product Subcategory] attributes.

  3. Process and deploy the cube.

  4. Start a SQL Server Profiler trace with the Get Data From Aggregation selected.

  5. Run the following code:

    --Code 8.3
    select {[Order Date].[Hierarchy].[Calendar Year].&[2005],[Order Date].[Hierarchy].[Calendar Year].&[2006],
      [Order Date].[Hierarchy].[Calendar Year].&[2007],[Order Date].[Hierarchy].[Calendar Year].&[2008]} on rows,
      [Product].[Product Hierarchy].[Product Subcategory] on columns
      from [Adventure Works DW2012]
      where...