SSAS 04: Data Mining Tutorials

Microsoft SQL Server Analysis Services makes it easy to create data mining solutions using wizards and integrated visualizations. Particularly if you are new to machine learning, the tools in Analysis Services are an easy way to design, train, and explore data mining models. The data in your models can be stored in a cube, relational database, or any other source support by Analysis Services. After creating a model, you can put it into production by accessing the model to create predictions using prediction multiple clients, including Integration Services and ASP.NET.

Tutorials

Basic Data Mining Tutorial (SQL Server 2014) – This tutorial walks you through a targeted mailing scenario. It demonstrates how to use the data mining algorithms, mining model viewers, and data mining tools that are included in Analysis Services. You will build three data mining models to answer practical business questions while learning data mining concepts and tools.

Intermediate Data Mining Tutorial (SQL Server 2014) – This tutorial contains a collection of lessons that introduce more advanced data mining concepts and techniques such as, forecasting, market basket analysis, neural networks and logistic regression, and sequence clustering.

DMX Tutorials (SQL Server 2014) – The Data Mining Extensions (DMX) query language has syntax like that of SQL but can be used to create, query, and manage predictive models stored in Analysis Services. These tutorials demonstrate how to create a new mining structure and mining models by using the DMX language, and how to create DMX prediction queries for use in applications.

See Also

Data Mining Solutions
Microsoft SQL Server Data Mining resources
Creating and Querying Data Mining Models with DMX: Tutorials (Analysis Services – Data Mining)

SSAS 03: Multidimensional Modeling Tutorial

This tutorial describes how to use SQL Server Data Tools to develop and deploy an Analysis Services project, using the fictitious company Adventure Works Cycles for all examples.

Lessons

This tutorial includes the following lessons.

Lesson Estimated time to complete
Lesson 1: Defining a Data Source View within an Analysis Services Project 15 minutes
Lesson 2: Defining and Deploying a Cube 30 minutes
Lesson 3: Modifying Measures, Attributes and Hierarchies 45 minutes
Lesson 4: Defining Advanced Attribute and Dimension Properties 120 minutes
Lesson 5: Defining Relationships Between Dimensions and Measure Groups 45 minutes
Lesson 6: Defining Calculations 45 minutes
Lesson 7: Defining Key Performance Indicators (KPIs) 30 minutes
Lesson 8: Defining Actions 30 minutes
Lesson 9: Defining Perspectives and Translations 30 minutes
Lesson 10: Defining Administrative Roles 15 minutes

What you learn

In this tutorial, you will learn the following:

  • How to define data sources, data source views, dimensions, attributes, attribute relationships, hierarchies, and cubes in an Analysis Services project within SQL Server Data Tools.
  • How to view cube and dimension data by deploying the Analysis Services project to an instance of Analysis Services, and how to then process the deployed objects to populate them with data from the underlying data source.
  • How to modify the measures, dimensions, hierarchies, attributes, and measure groups in the Analysis Services project, and how to then deploy the incremental changes to the deployed cube on the development server.
  • How to define calculations, Key Performance Indicators (KPIs), actions, perspectives, translations, and security roles within a cube.

A scenario description accompanies this tutorial so that you can better understand the context for these lessons. For more information, see Analysis Services Tutorial Scenario.

Prerequisites

You will need sample data, sample project files, and software to complete all of the lessons in this tutorial. For instructions on how to find and install the prerequisites for this tutorial, see Install Sample Data and Projects for the Analysis Services Multidimensional Modeling Tutorial.

Additionally, the following permissions must be in place to successfully complete this tutorial:

  • You must be a member of the Administrators local group on the Analysis Services computer or be a member of the server administration role in the instance of Analysis Services.
  • You must have Read permissions in the AdventureWorksDW sample database. This sample database is valid for the SQL Server 2017 release.

SSAS 02: Tabular Modelling Tutorial

This tutorial provides lessons on how to create and deploy a tabular model at the 1400 compatibility level. If you’re new to Analysis Services and tabular modeling, completing this tutorial is the quickest way to learn how to create and deploy a basic tabular model by using Visual Studio. Once you have the prerequisites in-place, it should take two to three hours to complete.

Lessons

This tutorial includes the following lessons:

Supplemental lessons

These lessons are not required to complete the tutorial, but can be helpful in better understanding advanced tabular model authoring features.

Lesson Estimated time to complete
Detail Rows 10 minutes
Dynamic security 30 minutes
Ragged hierarchies 20 minutes

What you learn

  • How to create a new tabular model project at the 1400 compatibility level in Visual Studio with SSDT.
  • How to import data from a relational database into a tabular model project workspace database.
  • How to create and manage relationships between tables in the model.
  • How to create calculated columns, measures, and Key Performance Indicators that help users analyze critical business metrics.
  • How to create and manage perspectives and hierarchies that help users more easily browse model data by providing business and application-specific viewpoints.
  • How to create partitions that divide table data into smaller logical parts that can be processed independent from other partitions.
  • How to secure model objects and data by creating roles with user members.
  • How to deploy a tabular model to an Azure Analysis Services server or SQL Server 2017 Analysis Services server by using SSDT.

Prerequisites

To complete this tutorial, you need:

Scenario

This tutorial is based on Adventure Works Cycles, a fictitious company. Adventure Works is a large, multinational manufacturing company that produces and distributes bicycles, parts, and accessories for commercial markets in North America, Europe, and Asia. The company employs 500 workers. Additionally, Adventure Works employs several regional sales teams throughout its market base. Your project is to create a tabular model for sales and marketing users to analyze Internet sales data in the AdventureWorksDW database.

To complete the tutorial, you must complete various lessons. In each lesson, there are tasks. Completing each task in order is necessary for completing the lesson. While in a particular lesson there may be several tasks that accomplish a similar outcome, but how you complete each task is slightly different. This method shows there is often more than one way to complete a task, and to challenge you by using skills you’ve learned in previous lessons and tasks.

The purpose of the lessons is to guide you through authoring a basic tabular model by using many of the features included in SSDT. Because each lesson builds upon the previous lesson, you should complete the lessons in order.