Free Newsletters:
DatabaseDaily  
Database Journal
Search 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
» DBA Jobs
» Sitemap

News Via RSS Feed


follow us on Twitter





Brocade Doubles Down on 16 Gbps Fibre Channel

Microsoft Wants iOS Apps to Run on WP7

Avaya Debuts New Virtual Services Switch
Database Journal |DBA Support |SQLCourse |SQLCourse2







Technical Specialist – Pre-sales (MA)
Next Step Systems
US-MA-Littleton

Justtechjobs.com Post A Job | Post A Resume

Featured Database Articles

MS SQL

November 11, 2002

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

By William Pearson


Having made the illustrative enhancements to the Customer dimension, let's turn now to the Product dimension.

First, let's provide some hierarchical information regarding our products. For the purposes of our example, let's say that, based upon the requests of information consumers, we want to provide product class and category information -- information that we realize does not appear in the products table. We will insert another table, product_class, as part of meeting this requirement.

58.  Click Insert on the top menu.

59.  Select Tables on the dropdown menu.

The Select Table dialog appears.

60.  Select the product_class table, noting that the column list appears to the right in the Details section of the dialog, as shown below.



Illustration 48: Account No Level of the Customer Dimension


61.  Click Add to add the product_class table to the schema pane.

62.  Click Close to dismiss the dialog.

We note that the product_class table, joined to the product table via the product_class_id column, appears in the schema pane.

63.  Drag the following fields from the product_class table over to drop onto the folder for the SKU level we defined earlier, in the order shown:

  • product_category
  • product_subcategory

Dragging the above onto the folder precisely in the order shown will result in their alignment as shown below:



Illustration 49: Product Dimension with New Member Additions


64.  Right-click on each of the above newly added dimension members, and rename each, respectively, to the following:

  • Category
  • Subcategory

65.  Select the Basic tab in the Properties pane for the SKU level.

66.  Click the Member Name Column field.

67.  Type the following into the field:

          CStr("product"."SKU")+ ' - ' + "product"."product_name"

The above expression again uses the VBA CStr function to convert the SKU field to a string that we can concatenate with the product name, much in the way we used it in the Customer dimension above. While the layout would depend upon the requirements of the information consumers, the point of the example is to show that such expressions can be accommodated within the Member Name Column field of the Properties pane. We would be able to precede the SKU identifier, sort by the product name instead of the SKU, and so forth relatively easily. (Combining different fields, as we have in our example, might make reporting and browsing easier from different information consumer perspectives).


Page 12: The Cube Editor (Continued)


See All Articles by Columnist William E. Pearson, III


Tools:
Add databasejournal.com to your favorites
Add databasejournal.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed

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: Script Component: Working with BLOB 0010 4 January 27th, 03:03 PM
Will an MS SQL db table trigger affect the value returned by scope_identity? wreade 2 December 19th, 04:48 PM
BULK UPDATE error benedec 1 December 14th, 08:39 AM
Toggling problem in Matrix report ssrs 2008 dev_ritesh 0 December 2nd, 02:17 PM