As we all know, SQL Server Analysis Service (SSAS) is an analytical data engine used in decision support and business analytics. It provides enterprise-grade semantic data models for business reports and client applications, such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
We will try to implement the same workflow to show how we can do data analysis in SSAS. I have divided this in two parts,
- Getting started with data analysis using SSAS Tabular Modeling in Excel - Part I
We will see how we can create SSAS tabular model and setup measure, roles, calculated columns, hierarchies in tabular modeling. - Getting started with data analysis using SSAS Tabular Modeling in Excel - Part II
We will see how business users or we can do data analysis on SSAS tabular model in excel.
Let’s get started with this example.
Prerequisite
- SQL Server (SSMS and SSAS Tabular Model Configured) - here we have used SQL Server 2017 Developer Edition.
- SSDT (SQL Server Data Tools) - we have used SSDT for visual studio 2017
- MS EXCEL
Note
It is very important to know the compatibility of SQL Server version that we will use. Please see this Microsoft Article for compatibility details.
Data
We will use “Adventure Works” Database to develop sample tabular model. We can download this database backup file from here.
In the below mentioned tables, we are going to create the tabular model.
| Tables | Description |
| Customer | This table contains information related to the customer. i.e. name, address etc. |
| Person | This is more specific information related to Person |
| Product | This table contains Product details. |
| DemoSalesOrderHeaderSeed | This table contains Sales Order Header information. i.e. date, customer info etc. |
| DemoSalesOrderDetailSeed | This table contains Sales Order Detail. |
Tabular Modeling
Now, we will create a Visual Studio Solution for the Tabular model.
- Go to the New Project.
- Select “Analysis Services Tabular Project” and named it “SSASTabularExample”.

- It will open the Tabular model designer. Give “localhost” in “Workspace Server” and compatibility level 1400 as we are using SQL Server 2017. Click okay.

- Then, it will open a popup for load data from various sources. Here select “SQL Server Database”.
- Then, will need to provide server information and credentials.

- We can see that it will provide the list of All SQL Server object tables, views, stored procedure etc. Here select required tables that I have already mentioned above and click on load button.

- We can see data processing is successfully completed as in the below screenshot.

Farhan AhmedPosted Jul 26, 2018, 11:40 AM
Great helpful I am beginner in this.