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

» Database Journal Home
» Database Articles
» Database Tutorials
MS Access
SQL Scripts & Samples
» Database Forum
» Slideshows
Free Newsletters:

News Via RSS Feed

Rss Feed

Database Journal |DBA Support |SQLCourse |SQLCourse2

Featured Database Articles


Posted Dec 2, 2002

Introducing the SQL Server 'MDX in Analysis Services' Series

By William Pearson

About the Series ...

This is the first tutorial of a new series, MDX in Analysis Services, that I hope will help new users get up to speed quickly with multidimensional expressions (MDX). The series is designed to provide hands-on application of the fundamentals of MDX from the perspective of MS SQL Server 2000 Analysis Services (to which I will refer in most cases as simply "Analysis Services" to save time and space). Our primary focus will be the creation of MDX expressions based upon single and multiple values, the objective of which will be to create queries for use with multidimensional data sources. Each installment in the series will progressively add more features, allowing us to create and apply MDX queries in a variety of scenarios designed to meet specific real-world needs.

In the MDX in Analysis Services series, we will focus upon building a practical foundation, based upon a pragmatic approach that "exercises" each newly explored concept in a way that I hope will give it practical meaning; we will move through a discussion of the fundamental components of basic MDX queries, and perform steps to use MDX enough to gain a good understanding of how it allows us to retrieve information from OLAP cubes. Our tutorials will rely heavily upon the samples provided when we installed MSSQL 2000 Analysis Services, allowing us to focus on grasping MDX as our primary objective, without being distracted by the rather vast subject matter surrounding cube design and building, Analysis Services in general, and other equally fascinating (but voluminous) domains that lie outside the scope of our introduction to MDX.

The MDX in Analysis Services series will:

  • Introduce basic MDX concepts, focusing on the calculation of single values with MDX expressions;
  • Progress to more advanced MDX features, demonstrating some of their practical applications;
  • Explore the creation of MDX queries through the use of MDX sets, where we'll expand our understanding of MDX to include the creation of multiple value expressions;
  • Focus upon the creation of calculated members;
  • Explore the creation and uses of calculated cells;
  • Explore the implementation and uses of drill-through functionality;
  • Introduce performance tuning procedures and other efficiency tips for using MDX;
  • Introduce other MDX features and nuances at appropriate junctures.

In this session, Concepts and Navigation, we will gain a broad understanding of the components and capabilities of an MDX expression. We will:
  • Use MDX to navigate the structure of an OLAP data source (our cube);
  • Obtain information about the dimension hierarchy and its members with MDX expressions;
  • Create a Calculated Member via an MDX expression, focusing our initial efforts on using constant values;
  • Use MDX to perform conditional tests and comparisons within expressions;
  • Query the multidimensional data source (our cube) and return values.

What We Need to Complete the Series

The MDX in Analysis Services series presupposes that you have MSSQL Server 2000 installed on your local PC, which needs to have at least the Workstation Edition of Microsoft Windows NT 4.0 (Service pack 5 or later) or Microsoft Windows 2000, Professional Edition. Other applications will be briefly touched upon, including Microsoft Excel 2000 and other Microsoft Office 2000 components. While many combinations of PCs, networks, and network versions of the foregoing applications will work, the applications and basic PC described are suggested minimums. Obviously, the PC must meet the system requirements for a MSSQL Server 2000 installation. (These requirements are readily available at the Microsoft Web site, along with a library of highly useful information, as most of us are aware.)

For all of the tutorials that we undertake in this series, we will be using the Data Sources and Samples provided in the Typical installation of MSSQL 2000 Analysis Services.

Page 2: Fundamental MDX Concepts

See All Articles by Columnist William E. Pearson, III

MS SQL Archives

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