Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Links Database Forum

» Database Journal Home
» Database Articles
» Database Tutorials
MS SQL
Oracle
DB2
MS Access
MySQL
» RESOURCES
Database Tools
SQL Scripts & Samples
Links
» Database Forum
» Sitemap
Free Newsletters:
DatabaseDaily  
News Via RSS Feed


follow us on Twitter
Database Journal |DBA Support |SQLCourse |SQLCourse2
 

Featured Database Articles

MS SQL

Posted Nov 11, 2002

Introduction to SQL Server 2000 Analysis Services: Working with the Cube Editor - Page 5

By William Pearson


Creating the Cube

The Cube Editor will first guide us through the selection of our fact table, which houses the measures upon which we seek to report. We will create a basic cube shell by taking the following actions:

1.      Right-click the new Cubes folder under the MyCube2 database we created above.

2.      Select New Cube from the initial shortcut menu.

3.      Click Editor, as shown in the illustration below.



Illustration 11: Initializing the Cube Editor


The Cube Editor appears, beginning with the Choose a Fact Table dialog, providing us with an opportunity to select a fact table for our cube, as depicted in Illustration 12 below.



Illustration 12: The Choose a Fact Table Dialog


4.      Select the Sales_Fact_1997 table.

The list of columns in the Sales_Fact_1997 table appears in the Details pane on the right half of the dialog.

5.      Click OK.

The Fact Table Row Count message box appears, asking if we want to count fact table rows, as shown below:



Illustration 13: The Fact Table Row Count Message Box


6.      Click Yes.

The Cube Editor window appears, showing the cube tree (top) and properties pane (bottom) on the left of the window, and the fact table schema (the Schema tab view) on the right, by default. The window should appear as depicted in Illustration 14 below.

We are required to select a fact table to proceed.



Illustration 14: The Cube Editor, with the Sales_Fact_1997 Table Schema View


7.      Add the following measures to the Measures folder, by dragging each from the Sales_Fact_1997 table and dropping it onto the folder, in the following order:

  • store_cost
  • store_sales
  • unit_sales

The selected measures fields appear in the Measures folder (sans underscores, which are converted to spaces; initial caps are another automatic conversion) as shown below:



Illustration 15: The Measures Folder with Newly Added Measures


Page 6: Creating the Cube (Continued)


See All Articles by Columnist William E. Pearson, III




MS SQL Archives

Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 




Latest Forum Threads
MS SQL Forum
Topic By Replies Updated
SQL 2005: SSIS: Error using SQL Server credentials poverty 3 August 17th, 07:43 AM
Need help changing table contents nkawtg 1 August 17th, 03:02 AM
SQL Server Memory confifuration bhosalenarayan 2 August 14th, 05:33 AM
SQL Server Primary Key and a Unique Key katty.jonh 2 July 25th, 10:36 AM


















Thanks for your registration, follow us on our social networks to keep up-to-date