Go to primary content
Previous
Previous
 
Next
Next

Example

The PRICE_CUBE has the calculated measure DMLPROG, which was created using the OLAP DML Function template. The calculated measure runs the OLAP DML program PROGRAM1, which returns the value 1.5. For any set of dimension members, the calculated measure has the value returned by the OLAP DML program.

The following is the OLAP DML program PROGRAM1. The first line is a comment.

"Create function returning NUMBER
return 1.5

Calculation

Run OLAP DML Function PROGRAM1 ...

OLAP Expression Syntax

OLAP_DML_EXPRESSION ('GLOBAL!PROGRAM1' , NUMBER)

Query Results

The DMLPROG column shows the value returned by the OLAP DML program PROGRAM1.

TIME         PRODUCT         DMLPROG        
----------   -------------   -------
Total Time   Total Product       1.5