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

Understanding multidimensionality


The following query is one of the simplest possible MDX queries:

--Query 5.1 
SELECT [Measures].[Sales Amount] ON COLUMNS
  FROM [Adventure Works DW2012];

As a seasoned SQL developer, you can see the similarities between SQL and MDX, the only thing in the previous query that shows that it is a MDX query is the ON COLUMNS keyword. However, there is a big difference between MDX and SQL. From now on, do not make any similarities between the T-SQL SELECT statement and the MDX SELECT statement they are totally different. MDX is a positional language, meaning that you position yourself in the multidimensional cube space through code.

What does this mean? The following figure shows a 3-dimensional cube. As you can see from the illustration, you have a dimension called Measures, a dimension called Time and a Product dimension. The previous query references one of the dimensions in the cube space ([Measures].[Sales Amount]) and places it on the column's axis.

The query...