ROK

This function returns the value of a Key Performance Indicator (KPI) and displays it. The KPI can be displayed as a value or a graphic. The OLAP database must allow this function.

Syntax

=ROK("data_connection","cube","KPI_name",KPI_type, [elements of the slice])

Example

=ROK("AdventureWorks","Finance","Return on Assets",0,"[Account].
[Account Number].[All Accounts]","[Date].[Fiscal].[All Periods]","[Department].
[Departments].&[4]","[Destination Currency].[Destination Currency Code].
[All Destination Currencies]","[Organization].[Organizations].&[2]",
"[Scenario].[Scenario].&[1]")