Appendix B

Multidimensional Expressions (MDX) Grammar

This appendix contains the syntax for expressions and formulas and the syntax for the MDX statements that OLE DB for OLAP uses to specify a dataset. The grammar is divided into several subclauses, each of which contains the Backus-Normal Form (BNF) for a set of syntax elements.

At the end of each subclause, there is a section called “Leveling Rules.” This section enumerates the optional productions. An OLE DB for OLAP–compliant provider must support all productions other than the productions mentioned in these rules.