Chapter 12
This chapter focuses on programming online analytical processing (OLAP) Services. When you write programs that work with OLAP Services, you will use Multidimensional Expressions (MDX) and ActiveX Data Objects Multidimensional (ADO MD). MDX is the language that you use to query an OLAP Services multidimensional schema through the PivotTable Service, and ADO MD is a set of objects that provide multidimensional capabilities to ADO. In this chapter, you will learn how to use these tools to query cubes, retrieve and manipulate multidimensional datasets, and create local cubes for offline data analysis.
To complete the lessons in this chapter, you must
In many of the exercises in this chapter, you will write queries against the Sales cube. The following tables contain dimension, measure, and hierarchy information about the Sales cube. Review this information to help you create MDX queries.
The following table describes the dimensions of the Sales cube.
Dimension | Levels | Description |
---|---|---|
Time | Year, Quarter, Month, Day | When the sale is made |
Product | Category Name, Product Name | The category and name of each product that is sold |
Customer | Country, Region, City, Company Name | Geographical hierarchy for each customer |
Shipper | Shipper Name | A list of shippers |
Employee | Employee Name | The employee who sells the product |
The following table describes the measures of the Sales cube.
Measure | Description |
---|---|
Line Item Total | List price of items that are sold |
Line Item Quantity | Number of units that are sold |
Line Item Discount | The discount that is applied |
Discounted Line Amount | The net sale amount after the discount |