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

Working with partitions in tabular models


Partitions are a crucial part of designing both tabular models as well as multi-dimensional cubes. You can add partitions to your fact table by performing the following steps:

  1. Click on the FactInternetSales table.

  2. Click on the Partitions button in the designer:

  3. In the Partition Manager dialog, change the name of the first partition to FactInternetSales 2005 and Below.

  4. Click on the SQL button and change the query to the following:

    SELECT [dbo].[FactInternetSales].* FROM [dbo].[FactInternetSales]
    WHERE [dbo].[FactInternetSales].[OrderDateKey] <='20051231'
  5. Click on the New button and add a new partition named FactInternetSales - Above 2005.

  6. Add the following query to the partition:

    SELECT [dbo].[FactInternetSales].* FROM [dbo].[FactInternetSales]
    WHERE [dbo].[FactInternetSales].[OrderDateKey] >'20051231'
  7. Click on the OK button and process and deploy your model.

One of the benefits with the tabular model when it comes to partitions is the fact that you have...