OLAP_DML_EXPRESSION executes an expression in the OLAP DML language.
The data type specified in the syntax
OLAP_DML_EXPRESSION (expression, datatype)
An expression in the OLAP DML language, such as a call to a function or a program.
The data type of the return value from expression
In this example, the OLAP_DML_EXPRESSION function executes the OLAP DML RANDOM function to generate a calculated measure with random numbers between 1.05 and 1.10.
OLAP_DML_EXPRESSION('RANDOM(1.05, 1.10)', NUMBER)
| Time | Product | Random |
|---|---|---|
| 2005 | Hardware | 1.07663806 |
| 2005 | Software/Other | 1.08295738 |
| 2006 | Hardware | 1.08707305 |
| 2006 | Software/Other | 1.09730881 |