SlideShare une entreprise Scribd logo
1  sur  100
Télécharger pour lire hors ligne
June 9, 2014
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
ii
Contents
1. Introduction...............................................................................................................................................1
2. Analysis Services Tabular mode................................................................................................................3
2.0 Introduction Tabular Modeling (SSAS Tabular)...................................................................................3
2.1 Building Analysis Services 2012 - Tabular Model................................................................................4
2.2 Create New Analysis Services Tabular Project....................................................................................6
2.3 Edit the relationship..........................................................................................................................17
2.4 Assign a table to Date Table in SSAS...............................................................................................21
2.5 View Analysis in Excel file..................................................................................................................25
2.6 Deploy the Analysis Services 2012 - Tabular Model.........................................................................28
2.7 Use the SSMS to run the Analysis Service.........................................................................................30
2.8 Create a Power View sheet connected to an external data model in Excel.....................................32
3. Multidimensional Cube...........................................................................................................................37
3.0 Introduction Multidimensional Modeling (SSAS) .............................................................................37
3.1 Create Multidimensional Cube .........................................................................................................38
3.2 Create a data Source.........................................................................................................................39
3.3 Create a data connection..................................................................................................................41
3.5 Create Data Source View ..................................................................................................................45
3.6 Create Cubes.....................................................................................................................................49
3.6 Process the project ...........................................................................................................................57
3.8 Debug the process and deploy problems .........................................................................................60
3.9 Deploy the project ............................................................................................................................63
3.10 Use the SSMS to run the Analysis Service.......................................................................................64
4.0 Conclusion.............................................................................................................................................73
APPANDIX A ................................................................................................................................................75
Install Microsoft SQL Server in Tabular Mode ........................................................................................75
References ..................................................................................................................................................95
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
iii
Table of Figures
Figure 1(Run SQL Server Data Tools)...........................................................................................................4
Figure 2(New project) ..................................................................................................................................5
Figure 3(Create New Analysis Services Tabular Project) ............................................................................6
Figure 4(choose a name of workspace server)............................................................................................7
Figure 5(choose the data source) ................................................................................................................7
Figure 6(Choose Microsoft SQL Server).......................................................................................................8
Figure 7(Connect to a Microsoft SQL Server Database)..............................................................................9
Figure 8(The Connection to the data source)............................................................................................10
Figure 9(Choose how to import the data).................................................................................................11
Figure 10(Select Tables and Views -A-)......................................................................................................12
Figure 11(Select Tables and Views -B-)......................................................................................................13
Figure 12(Select Tables and Views -C-)......................................................................................................14
Figure 13(Importing Success).....................................................................................................................15
Figure 14(Model.bim project view) ...........................................................................................................16
Figure 15(Model.bim Diagram view -A-) ...................................................................................................16
Figure 16(Model.bim Diagram view -B-) ...................................................................................................17
Figure 17(Model.bim Diagram view -C-) ...................................................................................................18
Figure 18(Model.bim Diagram view -D-)...................................................................................................19
Figure 19(Model.bim Diagram view -E-)....................................................................................................19
Figure 20(Model.bim Diagram view -F-)....................................................................................................20
Figure 21(Edit Relationship).......................................................................................................................21
Figure 22(Date Table -A-) ...........................................................................................................................22
Figure 23(Date Table -B-) ...........................................................................................................................23
Figure 24(Add aggregate function)............................................................................................................24
Figure 25(Analysis in Excel)........................................................................................................................25
Figure 26(Microsoft Excel with aggregate function).................................................................................26
Figure 27(Microsoft Excel analysis by year Calendar)...............................................................................26
Figure 28(change the view in Microsoft Excel) .........................................................................................27
Figure 29(Deploy Tabular Project).............................................................................................................28
Figure 30(Deploying Connection) ..............................................................................................................29
Figure 31(Deploying Success).....................................................................................................................29
Figure 32(SQL Server Management Studio Analysis Services connection) ..............................................30
Figure 33(SQL Server Management Studio Analysis overview)................................................................31
Figure 34(SSAS project using new Microsoft Excel sheet) ........................................................................32
Figure 35(choose Server Name for Excel connection) ..............................................................................33
Figure 36(Choose database that contains the data you want).................................................................34
Figure 37(Save data connection file and finish)........................................................................................34
Figure 38(Import Date)...............................................................................................................................35
Figure 39(Analysis Report builder in Excel)...............................................................................................36
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
iv
Figure 40 (Create Analysis Services Multidimensional and Data Mining project)...................................38
Figure 41(Create Data Source)...................................................................................................................39
Figure 42(Data Source Wizard) ..................................................................................................................40
Figure 43(Create a data source based on an existing or new connection) ..............................................40
Figure 44(Connection Manager)................................................................................................................41
Figure 45(How to define the connection)..................................................................................................42
Figure 46(Impersonation Information)......................................................................................................42
Figure 47 (Completing the Wizard)............................................................................................................43
Figure 48(Data Source in the Solution Explorer).......................................................................................44
Figure 49(Create Data Source View)..........................................................................................................45
Figure 50(Data Source View Wizard).........................................................................................................46
Figure 51(Select the data Source)..............................................................................................................46
Figure 52(Select Tables and Views) ...........................................................................................................47
Figure 53(name of the Data Source View).................................................................................................48
Figure 54 (Data Source View diagram) ......................................................................................................48
Figure 55 (Create New Cube) .....................................................................................................................49
Figure 56 (Cube Wizard).............................................................................................................................50
Figure 57 (Select Creating Method)...........................................................................................................50
Figure 58 (Select Measure Group Tables)..................................................................................................51
Figure 59 (Select Measures).......................................................................................................................52
Figure 60 (Select New Dimensions) ...........................................................................................................52
Figure 61 (Cube name) ...............................................................................................................................53
Figure 62 (cube [Design] tab).....................................................................................................................54
Figure 63 (Dim Date.dim)...........................................................................................................................55
Figure 64 (Dim Customer.dim)...................................................................................................................56
Figure 65 (Save Dim Customer.dim)..........................................................................................................56
Figure 66 (Process the project) ..................................................................................................................57
Figure 67 (Update the project in server) ...................................................................................................58
Figure 68 (Run the Process) .......................................................................................................................59
Figure 69 (Process Error Message).............................................................................................................60
Figure 70 (Impersonation Information).....................................................................................................61
Figure 71 (Process succeeded)...................................................................................................................62
Figure 72 (Deploy the project)...................................................................................................................63
Figure 73 (Run the SQL Server Management Studio) ...............................................................................64
Figure 74 (SSMS Connect to Server) ..........................................................................................................65
Figure 75 (AdventureWorksCubes [Browse])............................................................................................66
Figure 76 (Measures)..................................................................................................................................67
Figure 77 (Order Date) ...............................................................................................................................68
Figure 78 (Analyze in Excel)........................................................................................................................69
Figure 79 (Enable the Security Notice) ......................................................................................................69
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
v
Figure 80 (Analyze in Microsoft Excel Sheet) ............................................................................................70
Figure 81(Power View sheet connected to an external data model in Excel -A-)....................................71
Figure 82(Power View sheet connected to an external data model in Excel-B-).....................................72
Figure 83(Power View sheet connected to an external data model in Excel-C-).....................................72
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 1 of 100
1. Introduction
Analysis Services is a data engine used in decision support and business intelligence (BI)
solutions, providing analytical data used in reports and client applications such as Excel,
Reporting Services reports, and other third-party BI tools.
Use Analysis Services to create high-performance query structures, business logic, and
KPIs within a multi-purpose data model that can be accessed by any client application supporting
Analysis Services as a data source.
To create a model, use SQL Server Data Tools, choosing either a Tabular or
Multidimensional and Data Mining project template. Models are populated with data from
external data systems, usually data warehouses hosted on a SQL Server or Oracle relational
database engine (Tabular models support additional data source types).
To use a model, it's deployed to an Analysis Services instance that runs databases in a
particular server mode, making the data available to authorized users who connect through Excel
or other applications.
SQL Server Analysis Services (SSAS). SSAS is a system that performs specialized
analyses by drilling down and is used for analyses that are based on the conceptual model of a
cube. Systems such as SSAS focus on a single task and fast analyses, and they’re considerably
more optimized for this task than general systems such as SQL Server. SSAS enables analysis in
real time, a process called online analytical processing (OLAP). However, to get such
performance, you have to pay a price. You have to know the limitations of SSAS to prepare a
data warehouse in a way that is useful for SSAS. One thing to remember is that in an SSAS
database, you can use shared dimensions only. This is just one more reason why you should
prefer shared to private dimensions.
SSAS has two types of storage: dimensional and tabular.
1. Tabular storage is quicker to develop, because it works through tables like a data
warehouse does.
2. The dimensional model more properly represents a cube.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 2 of 100
However, the dimensional model includes even more metadata than the tabular model. In
BISM dimensional processing, SSAS offers semi-additive aggregate functions out of the box.
For example, SSAS offers the LastNonEmpty aggregate function, which properly uses the SUM
aggregate function across all dimensions but time, and defines the last known value as the
aggregate over time. In the BISM tabular model, you use the Data Analysis Expression (DAX)
language. The DAX language includes functions that let you build semi-additive expressions
quite quickly as well.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 3 of 100
2. Analysis Services Tabular mode
2.0 Introduction Tabular Modeling (SSAS Tabular)
Tabular models are in-memory databases in Analysis Services. Using state-of-the-art
compression algorithms and multi-threaded query processor, the xVelocity in-memory analytics
engine (VertiPaq) delivers fast access to tabular model objects and data by reporting client
applications such as Microsoft Excel and Microsoft Power View.
Tabular models support data access through two modes: Cached mode and DirectQuery
mode. In cached mode, you can integrate data from multiple sources including relational
databases, data feeds, and flat text files. In DirectQuery mode, you can bypass the in-memory
model, allowing client applications to query data directly at the (SQL Server relational) source.
Tabular models are authored in SQL Server Data Tools (SSDT) using new tabular model
project templates. You can import data from multiple sources, and then enrich the model by
adding relationships, calculated columns, measures, KPIs, and hierarchies. Models can then be
deployed to an instance of Analysis Services where client reporting applications can connect to
them. Deployed models can be managed in SQL Server Management Studio just like
multidimensional models. They can also be partitioned for optimized processing and secured to
the row-level by using role based security.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 4 of 100
2.1 Building Analysis Services 2012 - Tabular Model
Before you start build your SSAS using tabular mode you should install SQL Server
instance, please see Appendix A for the setup guidance.
We will start with build new Analysis Services Tabular mode
Run SQL Server Data Tools from Start menu as shown in Figure (1)
Figure 1(Run SQL Server Data Tools)
SQL Server Data Tools will run as it shown in Figure (2). Then, press New Project to start build
new SSAS tabular mode.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 5 of 100
Figure 2(New project)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 6 of 100
2.2 Create New Analysis Services Tabular Project
From the next windows choose the Analysis Services Tabular Project and give a name for your
project and location as shown in Figure (3) and click Ok.
Figure 3(Create New Analysis Services Tabular Project)
You might provide a Windows ask to choose a name of workspace server for the instance of
SQL Server Tabular Model that you already install before as shown in Figure (4), type
localhost”the name of the SQL Server tabular mode descript in Appendix A”
In our example it is localhostAST1.
AST1 is the name of SQL Server tabular mode that already installed.
Choose the tabular mode instance and you may want to test the connection then click Ok
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 7 of 100
Figure 4(choose a name of workspace server)
From the icon in the left, you choose the data source that we need for SSAS.
As shown in Figure (5).
Figure 5(choose the data source)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 8 of 100
Choose Microsoft SQL Server for creating a connection and build the data source, as shown in
Figure (6).
Figure 6(Choose Microsoft SQL Server)
In the Server name type “.” to point to the local server, in Database name choose the database
you want to using it, as shown in Figure (7). Then, press Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 9 of 100
Figure 7(Connect to a Microsoft SQL Server Database)
Type you windows user name and password for authentication, as shown in Figure (8). Then,
press Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 10 of 100
Figure 8(The Connection to the data source)
To view the tables and select the column use the first choice or you can write your query by
using the second choice, so in our example first option will be work on, as shown in Figure (9).
Then, press Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 11 of 100
Figure 9(Choose how to import the data)
Select the “FactIneternetSales” and will bring the related tables by click on “Select Related
Tables, as shown in Figure (10).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 12 of 100
Figure 10(Select Tables and Views -A-)
For Example, we will uncheck some of the related table, because we don’t need any information,
as shown in Figure (11).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 13 of 100
Figure 11(Select Tables and Views -B-)
Also we have option to change the name of the table. For example, rename
FactInternetSales to Internet Sales if you want, as shown in Figure (12). Then, click Finish.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 14 of 100
Figure 12(Select Tables and Views -C-)
You should see the success message like shown below, as shown in Figure (13). Then, press
Close.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 15 of 100
Figure 13(Importing Success)
The tables you selected will show as tab in the bottoms of the screen and the tables columns it
will appear in the main window and each set of the rows belong to one table this is the columns
for table name “DimCurrency “, as shown in Figure (14).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 16 of 100
Figure 14(Model.bim project view)
If you want to view the tables diagram click on the grid icon, as shown in Figure (15).
Figure 15(Model.bim Diagram view -A-)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 17 of 100
2.3 Edit the relationship
If you click on the relation line it will show which columns are connected, as shown in Figure
(16).
Figure 16(Model.bim Diagram view -B-)
You can select the relationship, and delete it by click on the relation line and press Delete, as
shown in Figure (17).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 18 of 100
Figure 17(Model.bim Diagram view -C-)
For creating the connection just drag and drop the key from table to the other key column in
other table it will create the relationship and shows which one is the primary key and the foreign
key, as shown in Figure (18).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 19 of 100
Figure 18(Model.bim Diagram view -D-)
The connection will be like as shown in Figure (19).
Figure 19(Model.bim Diagram view -E-)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 20 of 100
For editing the relation you can right click on the link and edit the relationship, as shown in
Figure (20).
Figure 20(Model.bim Diagram view -F-)
And from the window shown in Figure (21) you can select from which table to another table and
select the one column from each table.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 21 of 100
Figure 21(Edit Relationship)
After you finish view and editing if needed click save close the diagram and double click on
model.bim to go back to our work.
2.4 Assign a table to Date Table in SSAS
To choose one of the table to be as Date Table, in our example we will make the DimData table
as our Date Table to be used in SSAS , from the menu bar click on “Table” menu choice Date 
Make As Date Table, as shown in Figure (22).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 22 of 100
Figure 22(Date Table -A-)
It shows a window keep the choice on FullDateAlternativeKey and click OK, as shown in Figure
(23).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 23 of 100
Figure 23(Date Table -B-)
To add aggregate function to be used in the SSAS, click on the sum icon in the bar, as shown in
Figure (24), to choose which aggregate function you want to use. In our example we use Sum.
Click on the Internet Sales table tab in the bottom, and move to the right to select the
“SalesAmount” Column. Click on the function simple and choose the Sum, you will see the sum
added in the calculation area under the table column.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 24 of 100
Figure 24(Add aggregate function)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 25 of 100
2.5 View Analysis in Excel file
Click on Analysis in Excel icon to view the analysis in excel file, as specify the user as current
Windows User and click OK, as shown in Figure (25).
Figure 25(Analysis in Excel)
Microsoft Excel will run with extra side tools, if you click on the Sum of SalesAmount it will
view the result of the aggregate function that created earlier for the SalesAmount column, as
shown in Figure (26).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 26 of 100
Figure 26(Microsoft Excel with aggregate function)
Now, we will view the analysis of the sum by using the Date Table (as we define the DimDate as
Data Table), to do that go to the DimDate plus sign click on it and choose the CalendarYear, as
shown in Figure (27).
Figure 27(Microsoft Excel analysis by year Calendar)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 27 of 100
To change the view of the analysis on the way that required to build you can just drag and drop
the CalendarYear from column Labels to Row Labels, as shown in Figure (28).
Figure 28(change the view in Microsoft Excel)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 28 of 100
2.6 Deploy the Analysis Services 2012 - Tabular Model
Now we will deploy the project to be stored and use for example in SQL Server Management
Studio (SSMS).
Go back to the Microsoft visual Studio and right click on the project name and click “Deployee”,
as shown in Figure (29).
Figure 29(Deploy Tabular Project)
Enter your user and password; we will use the “sa” account user/password, as shown in Figure
(30).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 29 of 100
Figure 30(Deploying Connection)
Everything should work fine and get the Success window, as shown in Figure (31), and click
Close
Figure 31(Deploying Success)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 30 of 100
2.7 Use the SSMS to run the Analysis Service.
Run the SQL Server Management Studio (SSMS), for the Server type choose Analysis Services
and click <Browse for more…>, from the Browse for Servers window click on Analysis Services
then choose the Tubule instance that installed and the project done using it, as shown in Figure
(32), click ok and connect.
Figure 32(SQL Server Management Studio Analysis Services connection)
The SQL Server Management Studio (SSMS) will view the table and the column and you can
start work on it by using the (SSMS) for quick overview look at Figure (33)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 31 of 100
Figure 33(SQL Server Management Studio Analysis overview)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 32 of 100
2.8 Create a Power View sheet connected to an external data model in Excel
In Excel 2013, every workbook can contain an internal Data Model that you can modify
in Excel, in Power Pivot, and even in a Power View sheet in Excel. A workbook can contain
only one internal Data Model, and you can base a Power View in sheet on the Data Model in the
same workbook or on an external data source – another workbook, or a SQL Server 2012
Analysis Services (SSAS) tabular model. A single Excel workbook can contain multiple Power
View sheets, and each of the sheets can be based on a different data model.
To Bigen:
Run Microsoft Excel and From DATA tab choose From Other Sources from the drop down
menu click on From Analysis Services as shown in Figure (34).
Figure 34(SSAS project using new Microsoft Excel sheet)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 33 of 100
Write your Tabular instance path/name in our example: localhostAST1, click next as shown in
Figure (35).
Figure 35(choose Server Name for Excel connection)
Choose the tabular and the project name that we already created earlier from the drop down
menu, then click next as shown in Figure (36).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 34 of 100
Figure 36(Choose database that contains the data you want)
Click on Finish after you choose the location of the File name to save the data connection as
shown in Figure (37).
Figure 37(Save data connection file and finish)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 35 of 100
For import Date choose the pivot Table Report that will use the Date Table from the Project, and
click OK, we get the same view as we run it from the Microsoft Visual Studio as shown in
Figure (38).
Figure 38(Import Date)
The same view if you run Excel from the Microsoft Visual Studio 2010, that setup for excel
analysis user who don’t have skills and access to create and deploy SSAS project, as shown in
Figure (39).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 36 of 100
Figure 39(Analysis Report builder in Excel)
To see some example of what the SSAS perform to the end user. The Power View sheet
connected to an external data model in Excel looks like the listed figure 81, 82 or combines them
as shown in Figure 83.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 37 of 100
3. Multidimensional Cube
3.0 Introduction Multidimensional Modeling (SSAS)
An Analysis Services multidimensional solution uses cube structures for analyzing
business data across multiple dimensions. Multidimensional mode is the default server mode of
Analysis Services. It includes a query and calculation engine for OLAP data, with MOLAP,
ROLAP, and HOLAP storage modes to balance performance with scalable data requirements.
The Analysis Services OLAP engine is an industry leading OLAP server that works well with a
broad range of BI tools. Most Analysis Services deployments are installed as classic OLAP
servers.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 38 of 100
3.1 Create Multidimensional Cube
Run SQL Server Data Tools from start menu under Microsoft SQL Server 2012 as shown
in Figure (1), then Click New Project press New Project to start new project as shown in Figure
(2).
Choose Analysis Services Multidimensional and Data Mining project and give the name of the
project and location as shown in figure (40).
Figure 40 (Create Analysis Services Multidimensional and Data Mining project)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 39 of 100
3.2 Create a data Source
On the top right, Right click on the Data Source and click on New Data Source as shown in
figure (41).
Figure 41(Create Data Source)
Click next for the Data Source Wizard as shown in figure (42).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 40 of 100
Figure 42(Data Source Wizard)
Choose the first option to create a data source based on an existing or new connection and click
new as shown in figure (43).
Figure 43(Create a data source based on an existing or new connection)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 41 of 100
3.3 Create a data connection
This step is to create a data connection. Type in the Server name “.” to point to the local SQL
Server instance and select the AdventureWorksDW2012 database in the database name as shown
in figure (44) and Click OK.
Figure 44(Connection Manager)
Click next to keep define the connection by the first choice create a data source based on an
existing or new connection as shown in figure (45).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 42 of 100
Figure 45(How to define the connection)
Choose the Use the credentials of the current user and click Next as shown in figure (46).
Figure 46(Impersonation Information)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 43 of 100
Name the data Source for example “DSAdventureWorksDW2012" and Click finish in the
completing the Wizard windows as shown in figure (47).
Figure 47 (Completing the Wizard)
The Data Source Name created it will show in Solution Explorer under the Data Sources as
“DSAdventureWorksDW2012" as shown in figure (48).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 44 of 100
Figure 48(Data Source in the Solution Explorer)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 45 of 100
3.5 Create Data Source View
Create Data Source View by Right click on Data Source View and choice New Data Source
View from the Solution Explorer as shown in figure (49).
Figure 49(Create Data Source View)
Click next for the Data Source View Wizard as shown in figure (50).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 46 of 100
Figure 50(Data Source View Wizard)
Select the data Source the created earlier as shown in figure (51).
Figure 51(Select the data Source)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 47 of 100
Select Tables and Views by choose three tables from the available objects and click the arrow to
move them to the right side as shown in figure (52).
The Tables selected are:
1. FactInternetSales
2. DimDate (dbo)
3. DimCustomer (dbo)
Figure 52(Select Tables and Views)
Give name to represent the Data Source View, for our example is
“DSV_AdventureWorksDW2012” and click Finish as shown in figure (53).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 48 of 100
Figure 53(name of the Data Source View)
It will display the Data Source View as we created in diagram view as shown in figure (54).
Figure 54 (Data Source View diagram)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 49 of 100
3.6 Create Cubes
Create the Cube that allow the user to use user interface (UI), so the users can see the data that
they want without writing a SQL code or performing any jobs.
From the Solution Explorer Right click on the Cubes folder and click “New Cube…” as shown
in figure (55).
Figure 55 (Create New Cube)
Click next for the Welcome Cube Wizard as shown in figure (56).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 50 of 100
Figure 56 (Cube Wizard)
For Select Creating Method select “Use existing tables” and click next as shown in figure (57).
Figure 57 (Select Creating Method)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 51 of 100
To Select Measure Group Tables we will choose the “FactInternetSales” table and mark on it and
click next as shown in figure (58).
Figure 58 (Select Measure Group Tables)
In the Select Measures window we will select “Seals Amount” and mark on it as our measure
and click next as shown in figure (59).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 52 of 100
Figure 59 (Select Measures)
Select New Dimensions, use the DimDate and DimCustomers as Dimensions in the new cube
and mark on them and click next as shown in figure (60).
Figure 60 (Select New Dimensions)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 53 of 100
Cube name as shown in figure (61) given for the cube as “AdventureWorksCubes” and click
finish.
Figure 61 (Cube name)
Cube view as shown in figure (62) you can save and close from the X button on the
AdventureWorksCubes.cube[Design] tab.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 54 of 100
Figure 62 (cube [Design] tab)
Double click on the Dim Date.dim in the Dimensions section.
After save and close the diagram double click on the Dim_Date.dim in the Dimensions section to
view the listed columns, choice “Full Date Alternate Key” from the DimDate table and right
click and click on “New Attribute from Column” and so on for the rest of the columns as shown
in figure (63) and click the save bottom.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 55 of 100
Figure 63 (Dim Date.dim)
Now we will add column from DimCustomer.dim by double on DimCustomer.dim under the
Dimensions derectory and right click on the Frist Name and click on “New Attribute from
Column” and so on for the rest of the columns as shown in figure (64)& figure (65) and click the
save bottom.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 56 of 100
Figure 64 (Dim Customer.dim)
Figure 65 (Save Dim Customer.dim)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 57 of 100
3.6 Process the project
Right click on the project name  process as shown in figure (66).
Figure 66 (Process the project)
It will ask you if you would like to deploy the project first if it is out of date, does not updated in
the server or not recently deployed as shown in figure (67), click yes.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 58 of 100
Figure 67 (Update the project in server)
Run the process on the project it will show just make sure you have been selected the right
project, it will show the name of the project under the Object Name column as shown in figure
(68), click Run.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 59 of 100
Figure 68 (Run the Process)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 60 of 100
3.8 Debug the process and deploy problems
If you get error massage after run the process as shown in figure (69).
Figure 69 (Process Error Message)
Solution:
By double click on the Data Source “DSAdventureWorksDW2012.ds” on the top right in the
“Solution Explorer” click on the second tab Impersonation Information, Change the logon from
“Use The credentials of the current user” to windows user because will have access to Adventure
WD in same machine.
In our example Windows Account: ATRCOMAhmed Al-Obaidi.
And type the winnows password, as shown in figure (70).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 61 of 100
Figure 70 (Impersonation Information)
And click right click on project name and go to  Process again and Click Run
Will be with no error it will show the Process succeeded message as shown in figure (71).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 62 of 100
Figure 71 (Process succeeded)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 63 of 100
3.9 Deploy the project
For deploy the project only right click on the project name “Multidimensional Cupe“ and click
Deploy as shown in figure (72).
Figure 72 (Deploy the project)
You will see thee Deployment Completed Successfully on the right down corner Status box as
shown in figure (72).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 64 of 100
3.10 Use the SSMS to run the Analysis Service.
Run the SQL Server Management Studio (SSMS) from Start Menu and go to Microsoft SQL
Server 2012 click on SQL Server Management Studio as shown in figure (73).
Figure 73 (Run the SQL Server Management Studio)
For the Connect to Server use in the Server type “Analysis Services” from drop down box.
In Server Name use your SQL Server instance in Multidimensional and Data Mining Mode as
shown in figure (74).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 65 of 100
Figure 74 (SSMS Connect to Server)
Navegate from the Object Explorer to ther Cubes and righ click on “AdventureWorksCubes” and
click on Browse. It will show the AdventureWorksCubes [Browse] in the main body of the
application as shown in figure (75).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 66 of 100
Figure 75 (AdventureWorksCubes [Browse])
In the AdventureWorksCubes [Browse] window under the Measures Group expand the
Measures, expand the Fact Internet Sales and right click on the Sales Amount to click on Add to
Query as shown in figure (76).
You will notice the Sales Amount field has been added in the query area.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 67 of 100
Figure 76 (Measures)
Expand the Order Date and right click on the “Order Date.Calandar year” click on Add to Query
as shown in figure (77).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 68 of 100
Figure 77 (Order Date)
To Analyze in Microsoft Excel so we can view the data in excel sheet click on the Excel icon as
shown in figure (78).
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 69 of 100
Figure 78 (Analyze in Excel)
Click Enable for security to let the Microsoft Excel run the plugin and add the analyze features in
the excel sheet as shown in figure (79).
Figure 79 (Enable the Security Notice)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 70 of 100
Analyze in Microsoft Excel will start in blank Sheet with the extra analyzing tools as shown in
figure (80).
Figure 80 (Analyze in Microsoft Excel Sheet)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 71 of 100
To see some example of what the SSAS perform to the end user. The Power View sheet
connected to an external data model in Excel looks like the listed figure 81, 82 or combines them
as shown in Figure 83.
Figure 81(Power View sheet connected to an external data model in Excel -A-)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 72 of 100
Figure 82(Power View sheet connected to an external data model in Excel-B-)
Figure 83(Power View sheet connected to an external data model in Excel-C-)
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 73 of 100
4.0 Conclusion
 The Tabular model (In-Memory Cube). Tabular models are in-memory databases in
Analysis Services. Using state-of-the-art compression algorithms and multi-threaded
query processing, the Xvelocity™ engine delivers fast access to tabular model objects
and data through reporting client applications such as Microsoft Excel and Microsoft
Power View.
 The Multidimensional model (traditional OLAP Cube). This model is the OLAP cube
that already exists for more than ten years. OLAP technology organizes summary data
into multidimensional structures. Aggregations are stored in the multidimensional
structure in cells at coordinates specified by the dimensions.
These two models have the same goal: to provide a semantic layer on top of your Data
Warehouse with high performance capabilities that allows the end-users to dig into the data. The
fact that these two models are part of Analysis Services could give the impression that both
models are similar and that you can easily switch from one model to another. The reality is that
they are two different products with two totally different design experiences and underlying data
architectures. They can co-exist on the same machine but they both have their own instances.
Because tabular is the newer solution, you might think that migrating an existing
multidimensional solution to a tabular format is the correct course of action, but this is usually
not the case. Tabular does not supersede multidimensional, and the two formats are not
interchangeable. Unless you have a specific reason to do so, do not rebuild an existing
multidimensional solution if it is already meeting the needs of your organization. For new
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 74 of 100
projects, consider the tabular approach. It will be faster to design, test, and deploy; and it will
work better with the latest self-service BI applications from Microsoft.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 75 of 100
APPANDIX A
Install Microsoft SQL Server in Tabular Mode
Installation >>>> Click New SQL Server stand-alone instllation or add features to an existing
installation.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 76 of 100
Then press OK if you make sure there are no failed.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 77 of 100
There are no updates for SQL Server found online >>> click Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 78 of 100
The SQL Server start to install the setup files on the system.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 79 of 100
The operation completed without failed >>> click Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 80 of 100
We will choose “Perform a new installation of SQL Server 2012” because we want a new
instance of SQL Server 2012.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 81 of 100
Then, Enter the product key >>> click Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 82 of 100
Check ”I accept the license terms.” >>> Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 83 of 100
Choose the “SQL Server Feature Installation.” >>> Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 84 of 100
Check to Analysis Services and make sure the SQL Server Data Tools already checked from the
previous instance >>> Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 85 of 100
The operation completed without failed >>> Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 86 of 100
Choose insert the name of the instance in “named instance” and write the same in the Instance ID
>>> Next
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 87 of 100
It shows the Disk Usage Summary >>> Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 88 of 100
Make sure the Startup Type is Automatic >>> Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 89 of 100
Choose the tabular Mode >>> and click on “Add Current User” to assign a current window user
to the SQL Server instance >>> Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 90 of 100
You can check to send Windows and SQL Server Error Report press Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 91 of 100
Make sure there is no Failed >>> Next.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 92 of 100
Press Install after verify the SQL Server 2012 features to be installed.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 93 of 100
It starts to Installation
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 94 of 100
The Installation completed >>> Close.
Southern New Hampshire University
IT-650 Principles of Database Design 14TW3
Project Name: SQL Server Analysis Services (SSAS)
Page 95 of 100
References
 D.Sarka, M.Lah and G.Jerkič , Exam 70-463 implementing a data warehouse with
Microsoft SQL Server 2012 : training kit. Microsoft Press ;.2012.
 http://msdn.microsoft.com/en-us/library/bb522607.aspx

Contenu connexe

Tendances

Developing with SQL Server Analysis Services 201310
Developing with SQL Server Analysis Services 201310Developing with SQL Server Analysis Services 201310
Developing with SQL Server Analysis Services 201310Mark Tabladillo
 
Data warehouse and ssas terms
Data warehouse and ssas termsData warehouse and ssas terms
Data warehouse and ssas termsKaran Gulati
 
Introduction to Cortana Analytics
Introduction to Cortana AnalyticsIntroduction to Cortana Analytics
Introduction to Cortana AnalyticsChris Testa-O'Neill
 
Session 2: SQL Server 2012 with Christian Malbeuf
Session 2: SQL Server 2012 with Christian MalbeufSession 2: SQL Server 2012 with Christian Malbeuf
Session 2: SQL Server 2012 with Christian MalbeufCTE Solutions Inc.
 
A Primer To Sybase Iq Development July 13
A Primer To Sybase Iq Development July 13A Primer To Sybase Iq Development July 13
A Primer To Sybase Iq Development July 13sparkwan
 
SQL - Parallel Data Warehouse (PDW)
SQL - Parallel Data Warehouse (PDW)SQL - Parallel Data Warehouse (PDW)
SQL - Parallel Data Warehouse (PDW) Karan Gulati
 
Harnessing the power of both worlds
Harnessing the power of both worldsHarnessing the power of both worlds
Harnessing the power of both worldsKaran Gulati
 
Steps towards business intelligence
Steps towards business intelligenceSteps towards business intelligence
Steps towards business intelligenceAhsan Kabir
 
SQL Server Developer 70-433
SQL Server Developer 70-433SQL Server Developer 70-433
SQL Server Developer 70-433jasonyousef
 
BI in SQL Server 2008 for Architects
BI in SQL Server 2008 for ArchitectsBI in SQL Server 2008 for Architects
BI in SQL Server 2008 for Architectsllangit
 
Introduction to sql database on azure
Introduction to sql database on azureIntroduction to sql database on azure
Introduction to sql database on azureAntonios Chatzipavlis
 
Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Antonios Chatzipavlis
 
Amit Adhlakha Bi Portfolio
Amit Adhlakha Bi PortfolioAmit Adhlakha Bi Portfolio
Amit Adhlakha Bi PortfolioAmit Adhlakha
 
SQL Server 2008 Data Mining
SQL Server 2008 Data MiningSQL Server 2008 Data Mining
SQL Server 2008 Data Miningllangit
 
How SQL Server 2016 SP1 Changes the Game
How SQL Server 2016 SP1 Changes the GameHow SQL Server 2016 SP1 Changes the Game
How SQL Server 2016 SP1 Changes the GamePARIKSHIT SAVJANI
 
Ssis 2016 RC3
Ssis 2016 RC3Ssis 2016 RC3
Ssis 2016 RC3MSDEVMTL
 

Tendances (20)

Developing with SQL Server Analysis Services 201310
Developing with SQL Server Analysis Services 201310Developing with SQL Server Analysis Services 201310
Developing with SQL Server Analysis Services 201310
 
Data warehouse and ssas terms
Data warehouse and ssas termsData warehouse and ssas terms
Data warehouse and ssas terms
 
Introduction to Cortana Analytics
Introduction to Cortana AnalyticsIntroduction to Cortana Analytics
Introduction to Cortana Analytics
 
Session 2: SQL Server 2012 with Christian Malbeuf
Session 2: SQL Server 2012 with Christian MalbeufSession 2: SQL Server 2012 with Christian Malbeuf
Session 2: SQL Server 2012 with Christian Malbeuf
 
A Primer To Sybase Iq Development July 13
A Primer To Sybase Iq Development July 13A Primer To Sybase Iq Development July 13
A Primer To Sybase Iq Development July 13
 
SQL - Parallel Data Warehouse (PDW)
SQL - Parallel Data Warehouse (PDW)SQL - Parallel Data Warehouse (PDW)
SQL - Parallel Data Warehouse (PDW)
 
Harnessing the power of both worlds
Harnessing the power of both worldsHarnessing the power of both worlds
Harnessing the power of both worlds
 
Steps towards business intelligence
Steps towards business intelligenceSteps towards business intelligence
Steps towards business intelligence
 
SQL Server Developer 70-433
SQL Server Developer 70-433SQL Server Developer 70-433
SQL Server Developer 70-433
 
Exploring sql server 2016
Exploring sql server 2016Exploring sql server 2016
Exploring sql server 2016
 
BI in SQL Server 2008 for Architects
BI in SQL Server 2008 for ArchitectsBI in SQL Server 2008 for Architects
BI in SQL Server 2008 for Architects
 
Stretch db sql server 2016 (sn0028)
Stretch db   sql server 2016 (sn0028)Stretch db   sql server 2016 (sn0028)
Stretch db sql server 2016 (sn0028)
 
Auditing Data Access in SQL Server
Auditing Data Access in SQL ServerAuditing Data Access in SQL Server
Auditing Data Access in SQL Server
 
Introduction to sql database on azure
Introduction to sql database on azureIntroduction to sql database on azure
Introduction to sql database on azure
 
Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016
 
Amit Adhlakha Bi Portfolio
Amit Adhlakha Bi PortfolioAmit Adhlakha Bi Portfolio
Amit Adhlakha Bi Portfolio
 
SQL Server 2008 Data Mining
SQL Server 2008 Data MiningSQL Server 2008 Data Mining
SQL Server 2008 Data Mining
 
How SQL Server 2016 SP1 Changes the Game
How SQL Server 2016 SP1 Changes the GameHow SQL Server 2016 SP1 Changes the Game
How SQL Server 2016 SP1 Changes the Game
 
Msbi online training
Msbi online trainingMsbi online training
Msbi online training
 
Ssis 2016 RC3
Ssis 2016 RC3Ssis 2016 RC3
Ssis 2016 RC3
 

En vedette

SSAS Design &amp; Incremental Processing - PASSMN May 2010
SSAS Design &amp; Incremental Processing - PASSMN May 2010SSAS Design &amp; Incremental Processing - PASSMN May 2010
SSAS Design &amp; Incremental Processing - PASSMN May 2010Dan English
 
SunQuest SSAS Cube Document
SunQuest SSAS Cube DocumentSunQuest SSAS Cube Document
SunQuest SSAS Cube DocumentRaghu Reddy
 
Agnes's SSAS Project Documentation
Agnes's SSAS Project DocumentationAgnes's SSAS Project Documentation
Agnes's SSAS Project Documentationagnestetter
 
Step by Step design cube using SSAS
Step by Step design cube using SSASStep by Step design cube using SSAS
Step by Step design cube using SSASAhsan Kabir
 
Introduction to MSBI
Introduction to MSBIIntroduction to MSBI
Introduction to MSBIEdureka!
 
Microsoft SSAS: Should I Use Tabular or Multidimensional?
Microsoft SSAS: Should I Use Tabular or Multidimensional?Microsoft SSAS: Should I Use Tabular or Multidimensional?
Microsoft SSAS: Should I Use Tabular or Multidimensional?Senturus
 
Architecting a Data Warehouse: A Case Study
Architecting a Data Warehouse: A Case StudyArchitecting a Data Warehouse: A Case Study
Architecting a Data Warehouse: A Case StudyMark Ginnebaugh
 

En vedette (8)

SSAS Design &amp; Incremental Processing - PASSMN May 2010
SSAS Design &amp; Incremental Processing - PASSMN May 2010SSAS Design &amp; Incremental Processing - PASSMN May 2010
SSAS Design &amp; Incremental Processing - PASSMN May 2010
 
SunQuest SSAS Cube Document
SunQuest SSAS Cube DocumentSunQuest SSAS Cube Document
SunQuest SSAS Cube Document
 
Sql Saturday Costa Rica-SSAS Tabular Model
Sql Saturday Costa Rica-SSAS Tabular ModelSql Saturday Costa Rica-SSAS Tabular Model
Sql Saturday Costa Rica-SSAS Tabular Model
 
Agnes's SSAS Project Documentation
Agnes's SSAS Project DocumentationAgnes's SSAS Project Documentation
Agnes's SSAS Project Documentation
 
Step by Step design cube using SSAS
Step by Step design cube using SSASStep by Step design cube using SSAS
Step by Step design cube using SSAS
 
Introduction to MSBI
Introduction to MSBIIntroduction to MSBI
Introduction to MSBI
 
Microsoft SSAS: Should I Use Tabular or Multidimensional?
Microsoft SSAS: Should I Use Tabular or Multidimensional?Microsoft SSAS: Should I Use Tabular or Multidimensional?
Microsoft SSAS: Should I Use Tabular or Multidimensional?
 
Architecting a Data Warehouse: A Case Study
Architecting a Data Warehouse: A Case StudyArchitecting a Data Warehouse: A Case Study
Architecting a Data Warehouse: A Case Study
 

Similaire à SQL Server Analysis Services

Sybase SQL AnyWhere12
Sybase SQL AnyWhere12Sybase SQL AnyWhere12
Sybase SQL AnyWhere12Sunny U Okoro
 
Maa wp sun_apps11i_db10g_r2-2
Maa wp sun_apps11i_db10g_r2-2Maa wp sun_apps11i_db10g_r2-2
Maa wp sun_apps11i_db10g_r2-2Sal Marcus
 
Maa wp sun_apps11i_db10g_r2-2
Maa wp sun_apps11i_db10g_r2-2Maa wp sun_apps11i_db10g_r2-2
Maa wp sun_apps11i_db10g_r2-2Sal Marcus
 
Fundamentals of Database Systems Laboratory Manual
Fundamentals of Database Systems Laboratory ManualFundamentals of Database Systems Laboratory Manual
Fundamentals of Database Systems Laboratory ManualSurafiel Habib
 
DB Develop 2 Oracle 12c, DB2, MYSQL, SQL Anywhere 16
 DB Develop 2 Oracle 12c, DB2, MYSQL, SQL Anywhere 16  DB Develop 2 Oracle 12c, DB2, MYSQL, SQL Anywhere 16
DB Develop 2 Oracle 12c, DB2, MYSQL, SQL Anywhere 16 Sunny U Okoro
 
Getting started with entity framework 6 code first using mvc 5
Getting started with entity framework 6 code first using mvc 5Getting started with entity framework 6 code first using mvc 5
Getting started with entity framework 6 code first using mvc 5Ehtsham Khan
 
Administrator en
Administrator enAdministrator en
Administrator enCáo Già
 
Final Report
Final ReportFinal Report
Final Reporttdsrogers
 
Learn MySQL - Online Guide
Learn MySQL - Online GuideLearn MySQL - Online Guide
Learn MySQL - Online Guidebigspire
 
Informatica installation guide
Informatica installation guideInformatica installation guide
Informatica installation guidecbosepandian
 
Dw guide 11 g r2
Dw guide 11 g r2Dw guide 11 g r2
Dw guide 11 g r2sgyazuddin
 
Physical exercise web application documentation
Physical exercise web application documentationPhysical exercise web application documentation
Physical exercise web application documentationTuononenP
 
Intrusion Detection on Public IaaS - Kevin L. Jackson
Intrusion Detection on Public IaaS  - Kevin L. JacksonIntrusion Detection on Public IaaS  - Kevin L. Jackson
Intrusion Detection on Public IaaS - Kevin L. JacksonGovCloud Network
 
Spring data-keyvalue-reference
Spring data-keyvalue-referenceSpring data-keyvalue-reference
Spring data-keyvalue-referencedragos142000
 
Soa In The Real World
Soa In The Real WorldSoa In The Real World
Soa In The Real Worldssiliveri
 

Similaire à SQL Server Analysis Services (20)

Sybase SQL AnyWhere12
Sybase SQL AnyWhere12Sybase SQL AnyWhere12
Sybase SQL AnyWhere12
 
Maa wp sun_apps11i_db10g_r2-2
Maa wp sun_apps11i_db10g_r2-2Maa wp sun_apps11i_db10g_r2-2
Maa wp sun_apps11i_db10g_r2-2
 
Maa wp sun_apps11i_db10g_r2-2
Maa wp sun_apps11i_db10g_r2-2Maa wp sun_apps11i_db10g_r2-2
Maa wp sun_apps11i_db10g_r2-2
 
Fundamentals of Database Systems Laboratory Manual
Fundamentals of Database Systems Laboratory ManualFundamentals of Database Systems Laboratory Manual
Fundamentals of Database Systems Laboratory Manual
 
DB Develop 2 Oracle 12c, DB2, MYSQL, SQL Anywhere 16
 DB Develop 2 Oracle 12c, DB2, MYSQL, SQL Anywhere 16  DB Develop 2 Oracle 12c, DB2, MYSQL, SQL Anywhere 16
DB Develop 2 Oracle 12c, DB2, MYSQL, SQL Anywhere 16
 
Getting started with entity framework 6 code first using mvc 5
Getting started with entity framework 6 code first using mvc 5Getting started with entity framework 6 code first using mvc 5
Getting started with entity framework 6 code first using mvc 5
 
Administrator en
Administrator enAdministrator en
Administrator en
 
Final Report
Final ReportFinal Report
Final Report
 
Learn MySQL - Online Guide
Learn MySQL - Online GuideLearn MySQL - Online Guide
Learn MySQL - Online Guide
 
Informatica installation guide
Informatica installation guideInformatica installation guide
Informatica installation guide
 
SAP CPI-DS.pdf
SAP CPI-DS.pdfSAP CPI-DS.pdf
SAP CPI-DS.pdf
 
Dw guide 11 g r2
Dw guide 11 g r2Dw guide 11 g r2
Dw guide 11 g r2
 
hci10_help_sap_en.pdf
hci10_help_sap_en.pdfhci10_help_sap_en.pdf
hci10_help_sap_en.pdf
 
Physical exercise web application documentation
Physical exercise web application documentationPhysical exercise web application documentation
Physical exercise web application documentation
 
Intrusion Detection on Public IaaS - Kevin L. Jackson
Intrusion Detection on Public IaaS  - Kevin L. JacksonIntrusion Detection on Public IaaS  - Kevin L. Jackson
Intrusion Detection on Public IaaS - Kevin L. Jackson
 
Spring data-keyvalue-reference
Spring data-keyvalue-referenceSpring data-keyvalue-reference
Spring data-keyvalue-reference
 
Soa In The Real World
Soa In The Real WorldSoa In The Real World
Soa In The Real World
 
MySQL Query Browser
MySQL Query BrowserMySQL Query Browser
MySQL Query Browser
 
MySQL Query Browser
MySQL Query BrowserMySQL Query Browser
MySQL Query Browser
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
 

Dernier

WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Bert Jan Schrijver
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 

Dernier (20)

WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 

SQL Server Analysis Services

  • 2. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) ii Contents 1. Introduction...............................................................................................................................................1 2. Analysis Services Tabular mode................................................................................................................3 2.0 Introduction Tabular Modeling (SSAS Tabular)...................................................................................3 2.1 Building Analysis Services 2012 - Tabular Model................................................................................4 2.2 Create New Analysis Services Tabular Project....................................................................................6 2.3 Edit the relationship..........................................................................................................................17 2.4 Assign a table to Date Table in SSAS...............................................................................................21 2.5 View Analysis in Excel file..................................................................................................................25 2.6 Deploy the Analysis Services 2012 - Tabular Model.........................................................................28 2.7 Use the SSMS to run the Analysis Service.........................................................................................30 2.8 Create a Power View sheet connected to an external data model in Excel.....................................32 3. Multidimensional Cube...........................................................................................................................37 3.0 Introduction Multidimensional Modeling (SSAS) .............................................................................37 3.1 Create Multidimensional Cube .........................................................................................................38 3.2 Create a data Source.........................................................................................................................39 3.3 Create a data connection..................................................................................................................41 3.5 Create Data Source View ..................................................................................................................45 3.6 Create Cubes.....................................................................................................................................49 3.6 Process the project ...........................................................................................................................57 3.8 Debug the process and deploy problems .........................................................................................60 3.9 Deploy the project ............................................................................................................................63 3.10 Use the SSMS to run the Analysis Service.......................................................................................64 4.0 Conclusion.............................................................................................................................................73 APPANDIX A ................................................................................................................................................75 Install Microsoft SQL Server in Tabular Mode ........................................................................................75 References ..................................................................................................................................................95
  • 3. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) iii Table of Figures Figure 1(Run SQL Server Data Tools)...........................................................................................................4 Figure 2(New project) ..................................................................................................................................5 Figure 3(Create New Analysis Services Tabular Project) ............................................................................6 Figure 4(choose a name of workspace server)............................................................................................7 Figure 5(choose the data source) ................................................................................................................7 Figure 6(Choose Microsoft SQL Server).......................................................................................................8 Figure 7(Connect to a Microsoft SQL Server Database)..............................................................................9 Figure 8(The Connection to the data source)............................................................................................10 Figure 9(Choose how to import the data).................................................................................................11 Figure 10(Select Tables and Views -A-)......................................................................................................12 Figure 11(Select Tables and Views -B-)......................................................................................................13 Figure 12(Select Tables and Views -C-)......................................................................................................14 Figure 13(Importing Success).....................................................................................................................15 Figure 14(Model.bim project view) ...........................................................................................................16 Figure 15(Model.bim Diagram view -A-) ...................................................................................................16 Figure 16(Model.bim Diagram view -B-) ...................................................................................................17 Figure 17(Model.bim Diagram view -C-) ...................................................................................................18 Figure 18(Model.bim Diagram view -D-)...................................................................................................19 Figure 19(Model.bim Diagram view -E-)....................................................................................................19 Figure 20(Model.bim Diagram view -F-)....................................................................................................20 Figure 21(Edit Relationship).......................................................................................................................21 Figure 22(Date Table -A-) ...........................................................................................................................22 Figure 23(Date Table -B-) ...........................................................................................................................23 Figure 24(Add aggregate function)............................................................................................................24 Figure 25(Analysis in Excel)........................................................................................................................25 Figure 26(Microsoft Excel with aggregate function).................................................................................26 Figure 27(Microsoft Excel analysis by year Calendar)...............................................................................26 Figure 28(change the view in Microsoft Excel) .........................................................................................27 Figure 29(Deploy Tabular Project).............................................................................................................28 Figure 30(Deploying Connection) ..............................................................................................................29 Figure 31(Deploying Success).....................................................................................................................29 Figure 32(SQL Server Management Studio Analysis Services connection) ..............................................30 Figure 33(SQL Server Management Studio Analysis overview)................................................................31 Figure 34(SSAS project using new Microsoft Excel sheet) ........................................................................32 Figure 35(choose Server Name for Excel connection) ..............................................................................33 Figure 36(Choose database that contains the data you want).................................................................34 Figure 37(Save data connection file and finish)........................................................................................34 Figure 38(Import Date)...............................................................................................................................35 Figure 39(Analysis Report builder in Excel)...............................................................................................36
  • 4. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) iv Figure 40 (Create Analysis Services Multidimensional and Data Mining project)...................................38 Figure 41(Create Data Source)...................................................................................................................39 Figure 42(Data Source Wizard) ..................................................................................................................40 Figure 43(Create a data source based on an existing or new connection) ..............................................40 Figure 44(Connection Manager)................................................................................................................41 Figure 45(How to define the connection)..................................................................................................42 Figure 46(Impersonation Information)......................................................................................................42 Figure 47 (Completing the Wizard)............................................................................................................43 Figure 48(Data Source in the Solution Explorer).......................................................................................44 Figure 49(Create Data Source View)..........................................................................................................45 Figure 50(Data Source View Wizard).........................................................................................................46 Figure 51(Select the data Source)..............................................................................................................46 Figure 52(Select Tables and Views) ...........................................................................................................47 Figure 53(name of the Data Source View).................................................................................................48 Figure 54 (Data Source View diagram) ......................................................................................................48 Figure 55 (Create New Cube) .....................................................................................................................49 Figure 56 (Cube Wizard).............................................................................................................................50 Figure 57 (Select Creating Method)...........................................................................................................50 Figure 58 (Select Measure Group Tables)..................................................................................................51 Figure 59 (Select Measures).......................................................................................................................52 Figure 60 (Select New Dimensions) ...........................................................................................................52 Figure 61 (Cube name) ...............................................................................................................................53 Figure 62 (cube [Design] tab).....................................................................................................................54 Figure 63 (Dim Date.dim)...........................................................................................................................55 Figure 64 (Dim Customer.dim)...................................................................................................................56 Figure 65 (Save Dim Customer.dim)..........................................................................................................56 Figure 66 (Process the project) ..................................................................................................................57 Figure 67 (Update the project in server) ...................................................................................................58 Figure 68 (Run the Process) .......................................................................................................................59 Figure 69 (Process Error Message).............................................................................................................60 Figure 70 (Impersonation Information).....................................................................................................61 Figure 71 (Process succeeded)...................................................................................................................62 Figure 72 (Deploy the project)...................................................................................................................63 Figure 73 (Run the SQL Server Management Studio) ...............................................................................64 Figure 74 (SSMS Connect to Server) ..........................................................................................................65 Figure 75 (AdventureWorksCubes [Browse])............................................................................................66 Figure 76 (Measures)..................................................................................................................................67 Figure 77 (Order Date) ...............................................................................................................................68 Figure 78 (Analyze in Excel)........................................................................................................................69 Figure 79 (Enable the Security Notice) ......................................................................................................69
  • 5. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) v Figure 80 (Analyze in Microsoft Excel Sheet) ............................................................................................70 Figure 81(Power View sheet connected to an external data model in Excel -A-)....................................71 Figure 82(Power View sheet connected to an external data model in Excel-B-).....................................72 Figure 83(Power View sheet connected to an external data model in Excel-C-).....................................72
  • 6. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 1 of 100 1. Introduction Analysis Services is a data engine used in decision support and business intelligence (BI) solutions, providing analytical data used in reports and client applications such as Excel, Reporting Services reports, and other third-party BI tools. Use Analysis Services to create high-performance query structures, business logic, and KPIs within a multi-purpose data model that can be accessed by any client application supporting Analysis Services as a data source. To create a model, use SQL Server Data Tools, choosing either a Tabular or Multidimensional and Data Mining project template. Models are populated with data from external data systems, usually data warehouses hosted on a SQL Server or Oracle relational database engine (Tabular models support additional data source types). To use a model, it's deployed to an Analysis Services instance that runs databases in a particular server mode, making the data available to authorized users who connect through Excel or other applications. SQL Server Analysis Services (SSAS). SSAS is a system that performs specialized analyses by drilling down and is used for analyses that are based on the conceptual model of a cube. Systems such as SSAS focus on a single task and fast analyses, and they’re considerably more optimized for this task than general systems such as SQL Server. SSAS enables analysis in real time, a process called online analytical processing (OLAP). However, to get such performance, you have to pay a price. You have to know the limitations of SSAS to prepare a data warehouse in a way that is useful for SSAS. One thing to remember is that in an SSAS database, you can use shared dimensions only. This is just one more reason why you should prefer shared to private dimensions. SSAS has two types of storage: dimensional and tabular. 1. Tabular storage is quicker to develop, because it works through tables like a data warehouse does. 2. The dimensional model more properly represents a cube.
  • 7. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 2 of 100 However, the dimensional model includes even more metadata than the tabular model. In BISM dimensional processing, SSAS offers semi-additive aggregate functions out of the box. For example, SSAS offers the LastNonEmpty aggregate function, which properly uses the SUM aggregate function across all dimensions but time, and defines the last known value as the aggregate over time. In the BISM tabular model, you use the Data Analysis Expression (DAX) language. The DAX language includes functions that let you build semi-additive expressions quite quickly as well.
  • 8. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 3 of 100 2. Analysis Services Tabular mode 2.0 Introduction Tabular Modeling (SSAS Tabular) Tabular models are in-memory databases in Analysis Services. Using state-of-the-art compression algorithms and multi-threaded query processor, the xVelocity in-memory analytics engine (VertiPaq) delivers fast access to tabular model objects and data by reporting client applications such as Microsoft Excel and Microsoft Power View. Tabular models support data access through two modes: Cached mode and DirectQuery mode. In cached mode, you can integrate data from multiple sources including relational databases, data feeds, and flat text files. In DirectQuery mode, you can bypass the in-memory model, allowing client applications to query data directly at the (SQL Server relational) source. Tabular models are authored in SQL Server Data Tools (SSDT) using new tabular model project templates. You can import data from multiple sources, and then enrich the model by adding relationships, calculated columns, measures, KPIs, and hierarchies. Models can then be deployed to an instance of Analysis Services where client reporting applications can connect to them. Deployed models can be managed in SQL Server Management Studio just like multidimensional models. They can also be partitioned for optimized processing and secured to the row-level by using role based security.
  • 9. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 4 of 100 2.1 Building Analysis Services 2012 - Tabular Model Before you start build your SSAS using tabular mode you should install SQL Server instance, please see Appendix A for the setup guidance. We will start with build new Analysis Services Tabular mode Run SQL Server Data Tools from Start menu as shown in Figure (1) Figure 1(Run SQL Server Data Tools) SQL Server Data Tools will run as it shown in Figure (2). Then, press New Project to start build new SSAS tabular mode.
  • 10. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 5 of 100 Figure 2(New project)
  • 11. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 6 of 100 2.2 Create New Analysis Services Tabular Project From the next windows choose the Analysis Services Tabular Project and give a name for your project and location as shown in Figure (3) and click Ok. Figure 3(Create New Analysis Services Tabular Project) You might provide a Windows ask to choose a name of workspace server for the instance of SQL Server Tabular Model that you already install before as shown in Figure (4), type localhost”the name of the SQL Server tabular mode descript in Appendix A” In our example it is localhostAST1. AST1 is the name of SQL Server tabular mode that already installed. Choose the tabular mode instance and you may want to test the connection then click Ok
  • 12. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 7 of 100 Figure 4(choose a name of workspace server) From the icon in the left, you choose the data source that we need for SSAS. As shown in Figure (5). Figure 5(choose the data source)
  • 13. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 8 of 100 Choose Microsoft SQL Server for creating a connection and build the data source, as shown in Figure (6). Figure 6(Choose Microsoft SQL Server) In the Server name type “.” to point to the local server, in Database name choose the database you want to using it, as shown in Figure (7). Then, press Next.
  • 14. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 9 of 100 Figure 7(Connect to a Microsoft SQL Server Database) Type you windows user name and password for authentication, as shown in Figure (8). Then, press Next.
  • 15. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 10 of 100 Figure 8(The Connection to the data source) To view the tables and select the column use the first choice or you can write your query by using the second choice, so in our example first option will be work on, as shown in Figure (9). Then, press Next.
  • 16. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 11 of 100 Figure 9(Choose how to import the data) Select the “FactIneternetSales” and will bring the related tables by click on “Select Related Tables, as shown in Figure (10).
  • 17. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 12 of 100 Figure 10(Select Tables and Views -A-) For Example, we will uncheck some of the related table, because we don’t need any information, as shown in Figure (11).
  • 18. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 13 of 100 Figure 11(Select Tables and Views -B-) Also we have option to change the name of the table. For example, rename FactInternetSales to Internet Sales if you want, as shown in Figure (12). Then, click Finish.
  • 19. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 14 of 100 Figure 12(Select Tables and Views -C-) You should see the success message like shown below, as shown in Figure (13). Then, press Close.
  • 20. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 15 of 100 Figure 13(Importing Success) The tables you selected will show as tab in the bottoms of the screen and the tables columns it will appear in the main window and each set of the rows belong to one table this is the columns for table name “DimCurrency “, as shown in Figure (14).
  • 21. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 16 of 100 Figure 14(Model.bim project view) If you want to view the tables diagram click on the grid icon, as shown in Figure (15). Figure 15(Model.bim Diagram view -A-)
  • 22. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 17 of 100 2.3 Edit the relationship If you click on the relation line it will show which columns are connected, as shown in Figure (16). Figure 16(Model.bim Diagram view -B-) You can select the relationship, and delete it by click on the relation line and press Delete, as shown in Figure (17).
  • 23. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 18 of 100 Figure 17(Model.bim Diagram view -C-) For creating the connection just drag and drop the key from table to the other key column in other table it will create the relationship and shows which one is the primary key and the foreign key, as shown in Figure (18).
  • 24. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 19 of 100 Figure 18(Model.bim Diagram view -D-) The connection will be like as shown in Figure (19). Figure 19(Model.bim Diagram view -E-)
  • 25. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 20 of 100 For editing the relation you can right click on the link and edit the relationship, as shown in Figure (20). Figure 20(Model.bim Diagram view -F-) And from the window shown in Figure (21) you can select from which table to another table and select the one column from each table.
  • 26. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 21 of 100 Figure 21(Edit Relationship) After you finish view and editing if needed click save close the diagram and double click on model.bim to go back to our work. 2.4 Assign a table to Date Table in SSAS To choose one of the table to be as Date Table, in our example we will make the DimData table as our Date Table to be used in SSAS , from the menu bar click on “Table” menu choice Date  Make As Date Table, as shown in Figure (22).
  • 27. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 22 of 100 Figure 22(Date Table -A-) It shows a window keep the choice on FullDateAlternativeKey and click OK, as shown in Figure (23).
  • 28. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 23 of 100 Figure 23(Date Table -B-) To add aggregate function to be used in the SSAS, click on the sum icon in the bar, as shown in Figure (24), to choose which aggregate function you want to use. In our example we use Sum. Click on the Internet Sales table tab in the bottom, and move to the right to select the “SalesAmount” Column. Click on the function simple and choose the Sum, you will see the sum added in the calculation area under the table column.
  • 29. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 24 of 100 Figure 24(Add aggregate function)
  • 30. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 25 of 100 2.5 View Analysis in Excel file Click on Analysis in Excel icon to view the analysis in excel file, as specify the user as current Windows User and click OK, as shown in Figure (25). Figure 25(Analysis in Excel) Microsoft Excel will run with extra side tools, if you click on the Sum of SalesAmount it will view the result of the aggregate function that created earlier for the SalesAmount column, as shown in Figure (26).
  • 31. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 26 of 100 Figure 26(Microsoft Excel with aggregate function) Now, we will view the analysis of the sum by using the Date Table (as we define the DimDate as Data Table), to do that go to the DimDate plus sign click on it and choose the CalendarYear, as shown in Figure (27). Figure 27(Microsoft Excel analysis by year Calendar)
  • 32. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 27 of 100 To change the view of the analysis on the way that required to build you can just drag and drop the CalendarYear from column Labels to Row Labels, as shown in Figure (28). Figure 28(change the view in Microsoft Excel)
  • 33. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 28 of 100 2.6 Deploy the Analysis Services 2012 - Tabular Model Now we will deploy the project to be stored and use for example in SQL Server Management Studio (SSMS). Go back to the Microsoft visual Studio and right click on the project name and click “Deployee”, as shown in Figure (29). Figure 29(Deploy Tabular Project) Enter your user and password; we will use the “sa” account user/password, as shown in Figure (30).
  • 34. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 29 of 100 Figure 30(Deploying Connection) Everything should work fine and get the Success window, as shown in Figure (31), and click Close Figure 31(Deploying Success)
  • 35. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 30 of 100 2.7 Use the SSMS to run the Analysis Service. Run the SQL Server Management Studio (SSMS), for the Server type choose Analysis Services and click <Browse for more…>, from the Browse for Servers window click on Analysis Services then choose the Tubule instance that installed and the project done using it, as shown in Figure (32), click ok and connect. Figure 32(SQL Server Management Studio Analysis Services connection) The SQL Server Management Studio (SSMS) will view the table and the column and you can start work on it by using the (SSMS) for quick overview look at Figure (33)
  • 36. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 31 of 100 Figure 33(SQL Server Management Studio Analysis overview)
  • 37. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 32 of 100 2.8 Create a Power View sheet connected to an external data model in Excel In Excel 2013, every workbook can contain an internal Data Model that you can modify in Excel, in Power Pivot, and even in a Power View sheet in Excel. A workbook can contain only one internal Data Model, and you can base a Power View in sheet on the Data Model in the same workbook or on an external data source – another workbook, or a SQL Server 2012 Analysis Services (SSAS) tabular model. A single Excel workbook can contain multiple Power View sheets, and each of the sheets can be based on a different data model. To Bigen: Run Microsoft Excel and From DATA tab choose From Other Sources from the drop down menu click on From Analysis Services as shown in Figure (34). Figure 34(SSAS project using new Microsoft Excel sheet)
  • 38. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 33 of 100 Write your Tabular instance path/name in our example: localhostAST1, click next as shown in Figure (35). Figure 35(choose Server Name for Excel connection) Choose the tabular and the project name that we already created earlier from the drop down menu, then click next as shown in Figure (36).
  • 39. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 34 of 100 Figure 36(Choose database that contains the data you want) Click on Finish after you choose the location of the File name to save the data connection as shown in Figure (37). Figure 37(Save data connection file and finish)
  • 40. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 35 of 100 For import Date choose the pivot Table Report that will use the Date Table from the Project, and click OK, we get the same view as we run it from the Microsoft Visual Studio as shown in Figure (38). Figure 38(Import Date) The same view if you run Excel from the Microsoft Visual Studio 2010, that setup for excel analysis user who don’t have skills and access to create and deploy SSAS project, as shown in Figure (39).
  • 41. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 36 of 100 Figure 39(Analysis Report builder in Excel) To see some example of what the SSAS perform to the end user. The Power View sheet connected to an external data model in Excel looks like the listed figure 81, 82 or combines them as shown in Figure 83.
  • 42. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 37 of 100 3. Multidimensional Cube 3.0 Introduction Multidimensional Modeling (SSAS) An Analysis Services multidimensional solution uses cube structures for analyzing business data across multiple dimensions. Multidimensional mode is the default server mode of Analysis Services. It includes a query and calculation engine for OLAP data, with MOLAP, ROLAP, and HOLAP storage modes to balance performance with scalable data requirements. The Analysis Services OLAP engine is an industry leading OLAP server that works well with a broad range of BI tools. Most Analysis Services deployments are installed as classic OLAP servers.
  • 43. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 38 of 100 3.1 Create Multidimensional Cube Run SQL Server Data Tools from start menu under Microsoft SQL Server 2012 as shown in Figure (1), then Click New Project press New Project to start new project as shown in Figure (2). Choose Analysis Services Multidimensional and Data Mining project and give the name of the project and location as shown in figure (40). Figure 40 (Create Analysis Services Multidimensional and Data Mining project)
  • 44. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 39 of 100 3.2 Create a data Source On the top right, Right click on the Data Source and click on New Data Source as shown in figure (41). Figure 41(Create Data Source) Click next for the Data Source Wizard as shown in figure (42).
  • 45. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 40 of 100 Figure 42(Data Source Wizard) Choose the first option to create a data source based on an existing or new connection and click new as shown in figure (43). Figure 43(Create a data source based on an existing or new connection)
  • 46. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 41 of 100 3.3 Create a data connection This step is to create a data connection. Type in the Server name “.” to point to the local SQL Server instance and select the AdventureWorksDW2012 database in the database name as shown in figure (44) and Click OK. Figure 44(Connection Manager) Click next to keep define the connection by the first choice create a data source based on an existing or new connection as shown in figure (45).
  • 47. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 42 of 100 Figure 45(How to define the connection) Choose the Use the credentials of the current user and click Next as shown in figure (46). Figure 46(Impersonation Information)
  • 48. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 43 of 100 Name the data Source for example “DSAdventureWorksDW2012" and Click finish in the completing the Wizard windows as shown in figure (47). Figure 47 (Completing the Wizard) The Data Source Name created it will show in Solution Explorer under the Data Sources as “DSAdventureWorksDW2012" as shown in figure (48).
  • 49. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 44 of 100 Figure 48(Data Source in the Solution Explorer)
  • 50. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 45 of 100 3.5 Create Data Source View Create Data Source View by Right click on Data Source View and choice New Data Source View from the Solution Explorer as shown in figure (49). Figure 49(Create Data Source View) Click next for the Data Source View Wizard as shown in figure (50).
  • 51. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 46 of 100 Figure 50(Data Source View Wizard) Select the data Source the created earlier as shown in figure (51). Figure 51(Select the data Source)
  • 52. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 47 of 100 Select Tables and Views by choose three tables from the available objects and click the arrow to move them to the right side as shown in figure (52). The Tables selected are: 1. FactInternetSales 2. DimDate (dbo) 3. DimCustomer (dbo) Figure 52(Select Tables and Views) Give name to represent the Data Source View, for our example is “DSV_AdventureWorksDW2012” and click Finish as shown in figure (53).
  • 53. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 48 of 100 Figure 53(name of the Data Source View) It will display the Data Source View as we created in diagram view as shown in figure (54). Figure 54 (Data Source View diagram)
  • 54. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 49 of 100 3.6 Create Cubes Create the Cube that allow the user to use user interface (UI), so the users can see the data that they want without writing a SQL code or performing any jobs. From the Solution Explorer Right click on the Cubes folder and click “New Cube…” as shown in figure (55). Figure 55 (Create New Cube) Click next for the Welcome Cube Wizard as shown in figure (56).
  • 55. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 50 of 100 Figure 56 (Cube Wizard) For Select Creating Method select “Use existing tables” and click next as shown in figure (57). Figure 57 (Select Creating Method)
  • 56. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 51 of 100 To Select Measure Group Tables we will choose the “FactInternetSales” table and mark on it and click next as shown in figure (58). Figure 58 (Select Measure Group Tables) In the Select Measures window we will select “Seals Amount” and mark on it as our measure and click next as shown in figure (59).
  • 57. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 52 of 100 Figure 59 (Select Measures) Select New Dimensions, use the DimDate and DimCustomers as Dimensions in the new cube and mark on them and click next as shown in figure (60). Figure 60 (Select New Dimensions)
  • 58. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 53 of 100 Cube name as shown in figure (61) given for the cube as “AdventureWorksCubes” and click finish. Figure 61 (Cube name) Cube view as shown in figure (62) you can save and close from the X button on the AdventureWorksCubes.cube[Design] tab.
  • 59. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 54 of 100 Figure 62 (cube [Design] tab) Double click on the Dim Date.dim in the Dimensions section. After save and close the diagram double click on the Dim_Date.dim in the Dimensions section to view the listed columns, choice “Full Date Alternate Key” from the DimDate table and right click and click on “New Attribute from Column” and so on for the rest of the columns as shown in figure (63) and click the save bottom.
  • 60. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 55 of 100 Figure 63 (Dim Date.dim) Now we will add column from DimCustomer.dim by double on DimCustomer.dim under the Dimensions derectory and right click on the Frist Name and click on “New Attribute from Column” and so on for the rest of the columns as shown in figure (64)& figure (65) and click the save bottom.
  • 61. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 56 of 100 Figure 64 (Dim Customer.dim) Figure 65 (Save Dim Customer.dim)
  • 62. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 57 of 100 3.6 Process the project Right click on the project name  process as shown in figure (66). Figure 66 (Process the project) It will ask you if you would like to deploy the project first if it is out of date, does not updated in the server or not recently deployed as shown in figure (67), click yes.
  • 63. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 58 of 100 Figure 67 (Update the project in server) Run the process on the project it will show just make sure you have been selected the right project, it will show the name of the project under the Object Name column as shown in figure (68), click Run.
  • 64. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 59 of 100 Figure 68 (Run the Process)
  • 65. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 60 of 100 3.8 Debug the process and deploy problems If you get error massage after run the process as shown in figure (69). Figure 69 (Process Error Message) Solution: By double click on the Data Source “DSAdventureWorksDW2012.ds” on the top right in the “Solution Explorer” click on the second tab Impersonation Information, Change the logon from “Use The credentials of the current user” to windows user because will have access to Adventure WD in same machine. In our example Windows Account: ATRCOMAhmed Al-Obaidi. And type the winnows password, as shown in figure (70).
  • 66. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 61 of 100 Figure 70 (Impersonation Information) And click right click on project name and go to  Process again and Click Run Will be with no error it will show the Process succeeded message as shown in figure (71).
  • 67. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 62 of 100 Figure 71 (Process succeeded)
  • 68. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 63 of 100 3.9 Deploy the project For deploy the project only right click on the project name “Multidimensional Cupe“ and click Deploy as shown in figure (72). Figure 72 (Deploy the project) You will see thee Deployment Completed Successfully on the right down corner Status box as shown in figure (72).
  • 69. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 64 of 100 3.10 Use the SSMS to run the Analysis Service. Run the SQL Server Management Studio (SSMS) from Start Menu and go to Microsoft SQL Server 2012 click on SQL Server Management Studio as shown in figure (73). Figure 73 (Run the SQL Server Management Studio) For the Connect to Server use in the Server type “Analysis Services” from drop down box. In Server Name use your SQL Server instance in Multidimensional and Data Mining Mode as shown in figure (74).
  • 70. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 65 of 100 Figure 74 (SSMS Connect to Server) Navegate from the Object Explorer to ther Cubes and righ click on “AdventureWorksCubes” and click on Browse. It will show the AdventureWorksCubes [Browse] in the main body of the application as shown in figure (75).
  • 71. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 66 of 100 Figure 75 (AdventureWorksCubes [Browse]) In the AdventureWorksCubes [Browse] window under the Measures Group expand the Measures, expand the Fact Internet Sales and right click on the Sales Amount to click on Add to Query as shown in figure (76). You will notice the Sales Amount field has been added in the query area.
  • 72. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 67 of 100 Figure 76 (Measures) Expand the Order Date and right click on the “Order Date.Calandar year” click on Add to Query as shown in figure (77).
  • 73. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 68 of 100 Figure 77 (Order Date) To Analyze in Microsoft Excel so we can view the data in excel sheet click on the Excel icon as shown in figure (78).
  • 74. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 69 of 100 Figure 78 (Analyze in Excel) Click Enable for security to let the Microsoft Excel run the plugin and add the analyze features in the excel sheet as shown in figure (79). Figure 79 (Enable the Security Notice)
  • 75. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 70 of 100 Analyze in Microsoft Excel will start in blank Sheet with the extra analyzing tools as shown in figure (80). Figure 80 (Analyze in Microsoft Excel Sheet)
  • 76. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 71 of 100 To see some example of what the SSAS perform to the end user. The Power View sheet connected to an external data model in Excel looks like the listed figure 81, 82 or combines them as shown in Figure 83. Figure 81(Power View sheet connected to an external data model in Excel -A-)
  • 77. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 72 of 100 Figure 82(Power View sheet connected to an external data model in Excel-B-) Figure 83(Power View sheet connected to an external data model in Excel-C-)
  • 78. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 73 of 100 4.0 Conclusion  The Tabular model (In-Memory Cube). Tabular models are in-memory databases in Analysis Services. Using state-of-the-art compression algorithms and multi-threaded query processing, the Xvelocity™ engine delivers fast access to tabular model objects and data through reporting client applications such as Microsoft Excel and Microsoft Power View.  The Multidimensional model (traditional OLAP Cube). This model is the OLAP cube that already exists for more than ten years. OLAP technology organizes summary data into multidimensional structures. Aggregations are stored in the multidimensional structure in cells at coordinates specified by the dimensions. These two models have the same goal: to provide a semantic layer on top of your Data Warehouse with high performance capabilities that allows the end-users to dig into the data. The fact that these two models are part of Analysis Services could give the impression that both models are similar and that you can easily switch from one model to another. The reality is that they are two different products with two totally different design experiences and underlying data architectures. They can co-exist on the same machine but they both have their own instances. Because tabular is the newer solution, you might think that migrating an existing multidimensional solution to a tabular format is the correct course of action, but this is usually not the case. Tabular does not supersede multidimensional, and the two formats are not interchangeable. Unless you have a specific reason to do so, do not rebuild an existing multidimensional solution if it is already meeting the needs of your organization. For new
  • 79. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 74 of 100 projects, consider the tabular approach. It will be faster to design, test, and deploy; and it will work better with the latest self-service BI applications from Microsoft.
  • 80. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 75 of 100 APPANDIX A Install Microsoft SQL Server in Tabular Mode Installation >>>> Click New SQL Server stand-alone instllation or add features to an existing installation.
  • 81. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 76 of 100 Then press OK if you make sure there are no failed.
  • 82. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 77 of 100 There are no updates for SQL Server found online >>> click Next.
  • 83. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 78 of 100 The SQL Server start to install the setup files on the system.
  • 84. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 79 of 100 The operation completed without failed >>> click Next.
  • 85. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 80 of 100 We will choose “Perform a new installation of SQL Server 2012” because we want a new instance of SQL Server 2012.
  • 86. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 81 of 100 Then, Enter the product key >>> click Next.
  • 87. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 82 of 100 Check ”I accept the license terms.” >>> Next.
  • 88. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 83 of 100 Choose the “SQL Server Feature Installation.” >>> Next.
  • 89. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 84 of 100 Check to Analysis Services and make sure the SQL Server Data Tools already checked from the previous instance >>> Next.
  • 90. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 85 of 100 The operation completed without failed >>> Next.
  • 91. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 86 of 100 Choose insert the name of the instance in “named instance” and write the same in the Instance ID >>> Next
  • 92. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 87 of 100 It shows the Disk Usage Summary >>> Next.
  • 93. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 88 of 100 Make sure the Startup Type is Automatic >>> Next.
  • 94. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 89 of 100 Choose the tabular Mode >>> and click on “Add Current User” to assign a current window user to the SQL Server instance >>> Next.
  • 95. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 90 of 100 You can check to send Windows and SQL Server Error Report press Next.
  • 96. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 91 of 100 Make sure there is no Failed >>> Next.
  • 97. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 92 of 100 Press Install after verify the SQL Server 2012 features to be installed.
  • 98. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 93 of 100 It starts to Installation
  • 99. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 94 of 100 The Installation completed >>> Close.
  • 100. Southern New Hampshire University IT-650 Principles of Database Design 14TW3 Project Name: SQL Server Analysis Services (SSAS) Page 95 of 100 References  D.Sarka, M.Lah and G.Jerkič , Exam 70-463 implementing a data warehouse with Microsoft SQL Server 2012 : training kit. Microsoft Press ;.2012.  http://msdn.microsoft.com/en-us/library/bb522607.aspx