MDX is used primarily in OLAP.

Here is a reasonable explaination.