MDX (Multidimensional Expressions)

Overview

MDX (Multidimensional Expressions) is a query language for Microsoft SQL Server Analysis Services (SSAS) and other OLAP databases. It enables you to retrieve and manipulate multidimensional data stored in cubes.

Key Concepts

Getting Started

Open SQL Server Management Studio (SSMS) and connect to an Analysis Services instance. Use a new MDX query window to start writing queries.

Popular Functions

FunctionCategoryDescription
SUMAggregateReturns the sum of a numeric expression evaluated over a set.
AVGAggregateReturns the average value of a numeric expression evaluated over a set.
YTDTimeReturns a set of periods from the beginning of the year up to the current period.
ParallelPeriodTimeReturns a member from a prior period relative to a given member.
AxisUtilityReturns the specified axis of the current query.