The Multidimensional Expression (Mdx) MDX: or MDX colon feature allows you to easily combine snippets of MDX with your existing Anaplan XL grids and other report objects.

The Mdx: statement could be a fixed piece of text, or created by using an Excel formula.

You can use this to create members or sets depending on your requirements.

Query generators can be useful in creating MDX snippets or as a starting point to work from.

The Mdx: statement is made up of two or three parts.

PartOptional?Description
Mdx: or MdxSet:NoSelect based on whether your mdx snippet returns a single member or a set of members.
Caption:=YesPuts a user friendly caption against the member when it is returned.
MdxNoThe Mdx snippet to run.

Create a member called "nextYear".

Mdx:nextYear:=[Date].[Calendar].[Calendar Year].&[2002].NextMember

Create a set with no name that gives the years from 2001 to 2003.

Mdxset:{[Date].[Calendar].[Calendar Year].&[2001]:[Date].[Calendar].[Calendar Year].&[2003]}

In these examples, the Mdx: statement is made using other Excel references. When the references change, the grid will also be updated.

You can then reference these cells using the standard Excel member picker.

Sometimes in a grid you need to add an MDX: calculation that is used by another calculation, but isn't displayed itself. You can do this by picking a range of cells containing MDX: statements which will be added to the query. This is done from the MDX tab of the properties screen.