ROK

此函数返回关键绩效指标 (KPI) 的值并显示它。KPI 可以显示为值或图形。OLAP 数据库必须允许此函数。

语法

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

示例

=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]")