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 DBA Videos
internet.com

» Database Journal Home
» DBA Videos
» Database Articles
» Database Tutorials
MS SQL
Oracle
MS Access
MySQL
DB2
» RESOURCES
Database Tools
SQL Scripts & Samples
Links
» Database Forum
» DBA Jobs
» Sitemap

News Via RSS Feed



follow us on Twitter

Marketplace Partners
Be a Marketplace Partner

internet.commerce
Be a Commerce Partner


















Mariposa Bot Shipped With Vodafone Smartphone

IT Job Market Heating Up: Report

Bing Makes Strides But Momentum Stalls

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Database Journal | DBA Support | SQLCourse | SQLCourse2







JAVA Developer – Trading Industry (NYC)
Next Step Systems
US-NY-New York

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

By William Pearson


I typically style the lowest level in the Date hierarchy as Date; calendar, fiscal, and perhaps other date hierarchies would typically share Date as a common lowest level.

Now let's make a few enhancements to the Customer and Product dimensions. First, let's provide an identifier for our customers that makes them easily isolable. We might learn from interviews with information consumers, for example, that a common desire is to be able to seek information on customers by name, last name first, with account number also readily viewable in the ID. This will require a concatenation of the name information, together with the Account No information (our current dimension level). We will take the following steps to give the information consumers what they want.

41.  Click to highlight the Customer dimension in the cube tree.

42.  Select the Advanced tab in the Properties pane.

43.  Click the Member Names Unique property field.

44.  Ensure that False is selected as the property setpoint from the dropdown selector.

45.  Ensure that the Allow Duplicate Names property is set to True.

The Advanced tab of the Properties pane for the Customer dimension appears as shown in Illustration 43:



Illustration 43: Properties Pane, Advanced Tab, Customer Dimension


46.  Click to highlight the Account No level of the Customer dimension in the cube tree.

47.  Select the Advanced tab in the Properties pane.

48.  Click the Member Names Unique property field.

49.  Ensure that False is selected as the property setpoint from the dropdown selector.

The Advanced tab of the Properties pane for the Account No level appears as shown in Illustration 44:



Illustration 44: Properties Pane, Advanced Tab, Account No Level


50.  Select the Basic tab in the Properties pane for the Account No level.

51.  Click the Member Name Column property.

52.  Type the following into the field:

          "customer"."lname"+', '+"customer"."fname"+' -- '+CStr("customer"."account_num")

The above expression uses the VBA CStr function to convert the account_num field to a string that we are able to concatenate with the last and first names. While many other variations are possible for presentation, 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 can easily check the effects of our work by using the Browse feature at the Customer dimension.

53.  Right-click the Customer dimension in the cube tree.

54.  Select Browse from the context menu, as shown below.



Illustration 45: Select Browse from the Context Menu


The Dimension Browser window appears.

55.  Expand the All Customers level to reveal the results of our Member Name Column expression, as partially displayed in Illustration 46.



Illustration 46: Partial View of Expanded All Customer Level


56.   Click the Close button on the Dimension Browser when finished.

57.   Drag the date_accnt_opened column from the customer table onto the Member Properties folder underneath the Account No level.

The Account No level of the Customer dimension appears as shown in Illustration 47:



Illustration 47: Account No Level of the Customer Dimension


The addition of the date to the level member properties will allow us to track the longevity of customer accounts for reporting and browsing purposes.


Page 11: The Cube Editor (Continued)


See All Articles by Columnist William E. Pearson, III




Go to page: Prev  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  Next  

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








Latest Forum Threads
MS SQL Forum
Topic By Replies Updated
Inner and outer select mussab 2 March 10th, 04:16 AM
SQL server 2008 in windows 7 pro problem theresatan 2 March 6th, 08:35 PM
code for re-build index and shrink db or file? mib 7 March 5th, 08:50 AM
sql maintenance plan fails database missing tbrownch 3 February 24th, 08:53 AM









The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers