MDX Documentation
Cell Properties (standard MDX)

The FORMAT_STRING cell property allows for controlling how values are formatted.

Description


icCube is currently supporting the following named formats:

Fixed,
Percent,
ElapsedMillis


WITH MEMBER val AS mdx-expression, FORMAT_STRING = 'Percent'


In addition, any standard JAVA format is supported for numerical value, link:


WITH MEMBER val AS mdx-expression, FORMAT_STRING = '%3.2f'


Date value are formatted using JAVA simple date format, link:


WITH MEMBER val AS mdx-expression, FORMAT_STRING = 'MMM dd, yyyy'


The function formatter('name', 'pattern') allows for formatting OLAP entities. For example, "duration" allows to format a duration value expressed in milliseconds (e.g. 23'000 milliseconds):


WITH MEMBER val AS mdx-expression, FORMAT_STRING = formatter("duration", "%h h. %m min.")


currentCellValue()

The function currentCellValue() allows for creating format string depending on the value of the cell being formatted:


FORMAT_STRING = iif( isNaN( currentCellValue() ),
'invalid number',
iif( isInfinity( currentCellValue() ), 'infinite number', '%f' )
)


See the following examples for more details about each format.

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