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 hierarchies


Another important option in tabular models is the ability to create hierarchies. To create a hierarchy of products, perform the following steps:

  1. First of all, you need to flatten the product's dimension; in the data warehouse, this is a snowflake, but in the tabular model, you need to have a single table containing all the attributes. Click on the DimProduct tab in the designer.

  2. Add a new column containing the following formula:

    =RELATED(ProductSubcategory[EnglishProductSubcategoryName])
  3. Right-click on the column and change the name to Product Subcategory.

  4. Add a second column that has the following definition:

    =RELATED(ProductCategory[EnglishProductCategoryName])
  5. Change the name of the column to Product Category.

  6. Switch to the Diagram view.

  7. Click on the Create Hierarchy button in the top-right corner of the DimProduct table.

  8. Name the hierarchy as Product Categories.

  9. Drag the Product Category attribute and drop it on the Product Categories hierarchy.

  10. Drag the Product Subcategory attribute...