MDX Query
Understanding MDX Queries
Multidimensional Expressions (MDX) is a query language designed to retrieve data from multidimensional databases, often called cubes. Think of a cube like a sophisticated Excel pivot table on steroids—it organizes business data across multiple dimensions like Time, Geography, Products, and Measures.
When you query a cube with MDX, you get back a cell set, which is essentially a grid of data values organized by the dimensions you specify.

MDX Syntax Structure
Examples:
Result set would look like:
2004
$1,500,000
12,500
2005
$1,750,000
14,200
Result might look like:
$3M
25,000
$450k
$2.55M
Result grid:
Classic Cars
$500K
$525K
$475K
$600K
Motorcycles
$200K
$225K
$210K
$240K
Planes
$150K
$160K
$155K
$175K
Think of MDX Like This ..
Imagine you're building a pivot table:
SELECT ... ON COLUMNS = dragging fields to the column area
SELECT ... ON ROWS = dragging fields to the row area
FROM = choosing your data source
WHERE = using report filters at the top
The result is always a grid (cell set) with your data organized exactly as you specified!
Last updated
Was this helpful?
