Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Hands-On SQL Server 2019 Analysis Services
  • Table Of Contents Toc
  • Feedback & Rating feedback
Hands-On SQL Server 2019 Analysis Services

Hands-On SQL Server 2019 Analysis Services

By : Steven Hughes
5 (7)
close
close
Hands-On SQL Server 2019 Analysis Services

Hands-On SQL Server 2019 Analysis Services

5 (7)
By: Steven Hughes

Overview of this book

SQL Server Analysis Services (SSAS) continues to be a leading enterprise-scale toolset, enabling customers to deliver data and analytics across large datasets with great performance. This book will help you understand MS SQL Server 2019’s new features and improvements, especially when it comes to SSAS. First, you’ll cover a quick overview of SQL Server 2019, learn how to choose the right analytical model to use, and understand their key differences. You’ll then explore how to create a multi-dimensional model with SSAS and expand on that model with MDX. Next, you’ll create and deploy a tabular model using Microsoft Visual Studio and Management Studio. You'll learn when and how to use both tabular and multi-dimensional model types, how to deploy and configure your servers to support them, and design principles that are relevant to each model. The book comes packed with tips and tricks to build measures, optimize your design, and interact with models using Excel and Power BI. All this will help you visualize data to gain useful insights and make better decisions. Finally, you’ll discover practices and tools for securing and maintaining your models once they are deployed. By the end of this MS SQL Server book, you’ll be able to choose the right model and build and deploy it to support the analytical needs of your business.
Table of Contents (19 chapters)
close
close
1
Section 1: Choosing Your Model
4
Section 2: Building and Deploying a Multidimensional Model
8
Section 3: Building and Deploying Tabular Models
12
Section 4: Exposing Insights while Visualizing Data from Your Models
15
Section 5: Security, Administration, and Managing Your Models

Why use SQL Server Analysis Services?

Now that you understand where Analysis Services fits into the SQL Server stack and the Microsoft BI ecosystem, why would you choose to use Analysis Services? Traditionally, Analysis Services was the best option to organize data for easy and performant analysis of data at scale. I have used Analysis Services to optimize data warehouses built on a variety of relational technologies including Microsoft SQL Server and Oracle. Analysis Services is source agnostic. If you can connect to the source, you have a use case for Analysis Services if you want more efficient analytics and reporting.

Optimized for reporting and analytics

This is the primary reason OLAP servers were introduced to the market. Earlier, we called out relational solutions and their optimization for efficient transaction handling. However, many of the optimizations for transaction handling conflict with reporting needs. One key example is the complexity of a relational solution.

The following diagram shows the complexity of relational design. The number of tables and joins required for reporting and analytics hinders the performance of report writers and queries:

Figure 1.2 – Relational diagram of the Wide World Importers sales schema

Figure 1.2 – Relational diagram of the Wide World Importers sales schema

As you can see in the preceding diagram, relational models make heavy use of foreign keys and related tables. Ralph Kimball introduced dimensional modeling and the star schema concepts to help optimize read techniques with relational systems. This resulted in simpler, flatter (denormalized) schemas such as the following diagram, which is the best design to support multidimensional model design:

Figure 1.3 – Star schema diagram for Wide World Importers sales facts

Figure 1.3 – Star schema diagram for Wide World Importers sales facts

While the star schema and dimensional models improved the ability of relational systems to extract reporting data, they were still bound to relational rules and languages. OLAP servers were introduced to further optimize the data for end user consumption. This resulted in even simpler, user-friendly options. The following example shows a pivot table in Excel that is directly connected to an Analysis Services model. This makes the data accessible and easy for users to analyze and create reports without deep technical skills:

Figure 1.4 – Excel pivot table connected to an Analysis Services model

Figure 1.4 – Excel pivot table connected to an Analysis Services model

Let's see the relation of Analysis Services with Excel.

Works great with Excel

This leads to one of the primary reasons that Analysis Services has become a beloved delivery platform for users and IT organizations. Once data is delivered in Analysis Services, it can be easily consumed by Excel. When a user connects to an Analysis Services model, they are able to interact with the data and build what they need from the underlying database without coming back to IT for additional support.

Organized with end users in mind

The other reason that has to be considered is that the data is organized to support the business, not database or code efficiencies. Well-designed OLAP solutions use business-friendly names for the data. OLAP solutions typically hide system fields as well making sure the data in the OLAP database is relevant.

Here is a list of key user-friendly features in OLAP databases:

  • Proper spelling and grammar, using spaces, capitalization, and punctuation.
  • Hidden system values such as primary keys, surrogate keys, and system names.
  • Relationships built in so the user does not have to determine how the data is related; it is related in the model itself.
  • Pre-existing common calculations such as totals or averages, which respond correctly to filtering or slicing.

The following table shows how reporting queries becomes simpler as the database engine and structure is more focused on an aggregated and report-friendly structure:

Figure 1.5 – How reporting queries becomes simpler

Figure 1.5 – How reporting queries becomes simpler

Each of these queries returns the same results:

Total Sales	Total Profit	Buying Group
73037043.78	31660852.75	      N/A
62654262.56	27125589.10	      Tailspin Toys
62352133.11	26942739.05	      Wingtip Toys

As you can see, making data more consumable for users is one of the key reasons to use Analysis Services. When considered in combination with OLAP-friendly tools such as Excel, Power BI, and Tableau, the use of OLAP servers is even more compelling.

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY