To create the cube, follow these steps and Small Example
- Select Microsoft SQL Server 2008 „ SQL Server Business Intelligence Development Studio from the Programs menu to launch Business Intelligence Development Studio.
- Select File > New > Project.
- In the New Project dialog box, select the Business Intelligence Projects project type.
- Select the Analysis Services Project template.
- Name the new project AdventureWorksCube2 and select a convenient location to save it.
- Click OK to create the new project.
- Right-click on the Data Sources folder in Solution Explorer and select New Data Source.
- Read the first page of the Data Source Wizard and click Next.
- Select the existing connection to the AdventureWorksDW2008 database and click Next.
- Select Service Account and click Next.
- Accept the default data source name and click Finish.
- Right-click on the Data Source Views folder in Solution Explorer and select New Data Source View.
- Read the first page of the Data Source View Wizard and click Next.
- Select the Adventure Works DW2008 data source and click Next.
- Select the FactInternetSales(dbo) table in the Available Objects list and click the > button to move it to the Included Object list.
- Click the Add Related Tables button to automatically add all of the tables that are directly related to the dbo.FactInternetSales table. Also add the DimGeography dimension.
- Click Next.
- Name the new view InternetSales and click Finish.
- Right-click on the Cubes folder in Solution Explorer and select New Cube.
- Read the first page of the Cube Wizard and click Next.
- Select the option to Use Existing Tables.
- Select FactInternetSales and FactInternetSalesReason tables as the Measure Group Tables and click Next.
- Leave all measures selected and click Next.
- Leave all dimensions selected and click Next.
- Name the new cube InternetSalesCube and click Finish.
- In the Solution Explorer, double click the DimCustomer dimension.
- Add the MaritalStaus field as an attribute, along with any other fields desired.
- Similarly, edit the DimSalesTerritory dimension, adding the SalesTerritoryCountry field along with any other desired fields.
- Also edit the DimProduct dimension, adding the EnglishProductName field along with any other desired fields.
- Select Project > AdventureWorksCube2 Properties and verify that your server name is correctly listed. Click OK.
- Select Build > Deploy AdventureWorksCube2.
- Right-click on the cube in Solution Explorer and select Browse.
- Expand the Measures node in the metadata panel.
- Drag the Order Quantity and Sales Amount measures and drop it on the Totals/Detail area.
- Expand the Dim Sales Territory node in the metadata panel.
- Drag the Sales Territory Country property and drop it on the Row Fields area.
- Expand the Dim Product node in the metadata panel.
- Drag the English Product Name property and drop it on the Column Fields area.
- Expand the Dim Customer node in the metadata panel.
- Drag the Marital Status property and drop it on the Filter Fields area.
- Click the dropdown arrow next to Marital Status. Uncheck the S checkbox.