Build your first cube in ssas


Introduction

The OLAP cube is a technique that holds the data in the optimized form and is also used to analyse the data with quick response. It is generally used for getting quick results from multiple dimensions and fact tables.

OLAP Cube Creation

1. First, create a data warehouse in Microsoft SQL Server studio. For instance, following is a sample Sales data warehouse –

2. Create new analysis service project in Microsoft Business Intelligence Development Studio –

3. Create new data source by right-click on Data Sources in Solution Explorer-

 

Now chose available connections or create new connection and click on next button-

Select Inherit option and click on Next button-

Click on Finish button. The data source will be created.

4. Create new data source view by right click on Data Source Views in Solution Explorer-

Click on Next button-

Select data source and click on Next button-

Move Fact table on right pane-

Click on Add Related Tables button-

Click on Next button-

Enter data source view name and click on Finish button, the data source view will be created.

5. Create new cube by right click on Cubes in Solution Explorer-

Click on Next button-

Click on Next button-

Select Fact table and click on Next button-

Select measures for fact table which you want-

Click on Next button-

Select Dimension tables and click on Next-

Enter cube name and click on Finish button. The cube will be created like this-

6. Now modify dimensions for queries. In Solution Explorer, double click on dimension Dim Product -> Drag and Drop Product Name from Table in Data Source View and Add in Attribute Pane at left side.

7. Now deploy the project. First right click on project name in solution explorer and click on properties –

Now click on OK button

8. Now right click on project name in solution explorer and click on deploy; the project will deploy and the message will be displayed –

9. Now right click on project name in solution explorer and click on process –

10. Now click on Run button and process has been completed –

11. Now right click on Cube and click on Browse

12. Add dimensions and fact fields like above image. The cube is ready to get quick results like below-

Conclusion

The OLAP Cube is mainly used for the following things-

  • It helps in diminishing the query time e.g. if the user query in the cube, it takes very less time as compared to simple query because in simple query, the data get summarized from different tables etc.

  • Some client software reporting tools only use the OLAP data source for the quick reporting.

  • If you have OLAP cube, no need to worry about performance. You only enjoy the Cube.

Lakshmi Srinivas
Lakshmi Srinivas

Programmer / Analyst / Technician

Updated on: 18-Oct-2019

873 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements