Adventure Works Internet Sales tutorial (1200)
APPLIES TO: SQL Server Analysis Services (2016 and later) Azure Analysis Services Power BI Premium
This tutorial provides lessons on how to create an Analysis Services tabular model at the 1200 compatibility level by using SQL Server Data Tools (SSDT), and deploy your model to an Analysis Services server on-premises or in Azure.
If you're using SQL Server 2017 or Azure Analysis Services and you want to create your model at the 1400 compatibility level, use the Tabular modeling (1400 compatibility level). This updated version uses the modern Get Data feature to connect and import source data, uses the M language to configure partitions, and includes additional supplemental lessons.
You should create your tabular models at the latest compatibility level supported by your server. Later compatibility level models provide improved performance, additional features, and will upgrade to future compatibility levels more seamlessly.
What you learn
How to create a new tabular model project in SSDT.
How to import data from a SQL Server relational database into a tabular model project.
How to create and manage relationships between tables in the model.
How to create and manage calculations, measures, and Key Performance Indicators that help users analyze model data.
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 dividing 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 Analysis Services server on-premises or in Azure.
This tutorial is based on Adventure Works Cycles, a fictitious company. Adventure Works is a large, multinational manufacturing company that produces bicycles, parts, and accessories for commercial markets in North America, Europe, and Asia. With headquarters in Bothell, Washington, the company employs 500 workers. Additionally, Adventure Works employs several regional sales teams throughout its market base.
To better support the data analysis needs of sales and marketing teams and of senior management, you are tasked with creating a tabular model for users to analyze Internet sales data in the AdventureWorksDW sample database.
In order to complete the tutorial, and the Adventure Works Internet Sales tabular model, you must complete a number of lessons. In each lesson is a number of 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 is to show that there is often more than one way to complete a particular task, and to challenge you by using skills you've learned in previous tasks.
The purpose of the lessons is to guide you through authoring a basic tabular model running in In-Memory mode by using many of the features included in SSDT. Because each lesson builds upon the previous lesson, you should complete the lessons in order. Once you've completed all of the lessons, you have authored and deployed the Adventure Works Internet Sales sample tabular model on an Analysis Services server.
This tutorial does not provide lessons or information about managing a deployed tabular model database by using SQL Server Management Studio, or using a reporting client application to connect to a deployed model to browse model data.
In order to complete this tutorial, you need the following prerequisites:
The latest version of SSDT.
The latest version of SQL Server Management Studio. Get the latest version.
A client application such as Power BI Desktop or Excel.
A SQL Server instance with the Adventure Works DW sample database. This sample database includes the data necessary to complete this tutorial. Get the latest version.
An Azure Analysis Services or SQL Server 2016 or later Analysis Services instance to deploy your model to. Sign up for a free Azure Analysis Services trial.
This tutorial includes the following lessons:
|Lesson||Estimated time to complete|
|Lesson 1: Create a New Tabular Model Project||10 minutes|
|Lesson 2: Add Data||20 minutes|
|Lesson 3: Mark as Date Table||3 minutes|
|Lesson 4: Create Relationships||10 minutes|
|Lesson 5: Create Calculated Columns||15 minutes|
|Lesson 6: Create Measures||30 minutes|
|Lesson 7: Create Key Performance Indicators||15 minutes|
|Lesson 8: Create Perspectives||5 minutes|
|Lesson 9: Create Hierarchies||20 minutes|
|Lesson 10: Create Partitions||15 minutes|
|Lesson 11: Create Roles||15 minutes|
|Lesson 12: Analyze in Excel||20 minutes|
|Lesson 13: Deploy||5 minutes|
This tutorial also includes Supplemental Lessons. Topics in this section are not required to complete the tutorial, but can be helpful in better understanding advanced tabular model authoring features.
|Lesson||Estimated time to complete|
|Implement Dynamic Security by Using Row Filters||30 minutes|
To begin the tutorial, continue to the first lesson: Lesson 1: Create a New Tabular Model Project.