MDAC 2.5 SDK - OLE DB Programmer's Reference
Chapter 23: Rowsets in OLE DB for OLAP


 

DIMENSION PROPERTIES Example

Consider the following MDX statement:

SELECT
   {Measures.Cost, Measures.Sales} 
      DIMENSION PROPERTIES MEMBER_CAPTION ON COLUMNS,
   CROSSJOIN({Venkatrao, Netz}, Products.MEMBERS)
      DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME, 
      SalesRep.[Phone Number], Products.SKU ON ROWS
FROM Sales
WHERE ([1991], Qtr1, USA)

This statement results in the following flattened rowset:

It is important to note the following: