MDX Documentation
Declared Functions (icCube MDX extension)

Declaration of functions written in MDX.

Description

icCube allows for declaring a function within the scope of a SELECT query. The syntax is very much similar to the declaration of a calculated member.

WITH FUNCTION fun(a,b) AS a + b
SELECT ...

A function can be declared as const using the CONST keyword. In that case, the evaluation of the function is considered as a constant and the slicer, the sub-select and the visual totals filters are not visible from such a function. Several limitations (e.g, .calculated members usage) apply to const functions as described in the following examples.

WITH CONST FUNCTION fun() AS ..
SELECT ...

Similarly, functions can be declared (and removed) at schema level using the CREATE / DROP statements.

DROP FUNCTION fun
CREATE FUNCTION fun(a,b) AS a+b

The following examples are demonstrating several features of these function declarations.

See Also

Create (Function) Drop (Function)

Examples

XMLA Properties

Find here the value of the XMLA properties when not specified otherwise.

icCube OLAP version: 2.5.1 13-May-2012 02:21:10 GMT