Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

by Jayaram Krishnaswamy | July 2008 | .NET Microsoft

As noted in Part 1, OLAP presents Business Intelligence via what is known as a CUBE. A Cube has many dimensions and it provides a faster method to access the intelligence compared to the structured querying where the overhead of 'Joins' makes it inefficient. Taking the example of a 'Sales' Cube having everything related to sales we can identify the dimensions as the Sales Outlet, The Customers , the Products and the time period over which sales are being audited or looked into. We also notice that there are certain measures that we are interested related to these 'dimensions' like 'Store Sales', 'Cost of Products, 'number of units sold' etc. The Analysis Services analyzes these intricate relationship that exist in a cube. In this part we will see the process of creating a Cube in VS 2008.

Reviewing Jayaram's other OLAP related articles may greatly help in understanding this article.

Creating a New Cube

The folder structure for the project developed in Part 1 is shown in the next figure. The Northwind.ds data source and the Northwind.dsv data source view were configured in Part 1. There are no pre-existing cubes in Nwind2008.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Right click the Cubes folder and from the drop-down menu you can create a new Cube.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Click on New Cube... menu item. This opens the Cube Wizard welcome window as shown.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Click on the Next button. This opens the Select Creation Method page of the wizard as shown. There are three options and the default is used for this article.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Click on the Next button. This opens the Select Measure Groups tables. At least one table must be chosen to continue. There is even the option of asking for a suggestion.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Click on the Suggest button at the top. The program goes through the motions and comes up with two tables as candidates for Measures group, the Products table and the Order Details table. You will see check marks appearing for these two tables. Accept the suggested tables for measures and click on the Next button.

This opens the Select Measures window where you can choose measures that you want to include in the Cube as shown.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Uncheck the ID related items in the Products table and click on the Next button. This brings up the Select New Dimensions window as shown in the next figure. Here also one could choose the needed items. For this article the default is accepted.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Click on the Next button. This takes you to the Completing the Wizard window which shows your Cube contents in a tree view as shown.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Now click on the Finish button. This creates the Cube as shown in the Solution Explorer.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Now you will see additional tabs open up for the Northwind.cube as shown. Using these tabs you can look at more details. These are outside the scope of this article.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Also separate windows gets displayed for Cube's Measures and Dimensions as shown.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

Also, the Data Source View of the Cube with the relationships between the Dimensions and Measures gets displayed as shown.

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2

 


 

Sign up for a Packt account to see the rest of this article

Now that you've read a few articles, you might want to consider signing up for a Packt account. It takes a matter of seconds, will give you access to all the articles on PacktPub.com, and once you've signed up you'll be returned here to carry on reading your article.

Furthermore, you'll gain access to nine free ebooks, and be offered a free trial of PacktLib, Packt's online library. Simply enter your details here, or log in to your existing account.

Log in

...or register

Post new comment

Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Sort A-Z