百分位数

Essbase 的 MDX Percentile() 函数根据数值表达式对集进行排序,然后返回位于给定百分位数的元组的值。返回的值使集合成员的 n % 小于它。

语法

Percentile ( set, numeric_value_expr, percentile )

参数

集

要从中获取元组值的集。

numeric_value_expr

返回数字值的数值或表达式。

百分比段

百分位数。必须在 0 和 100 之间。

注释

此功能仅适用于聚合存储 (ASO) 多维数据集。

示例

WITH MEMBER [Measures].[Perc] AS
 'Percentile(Products.Levels(0).Members, [Measures].[Price Paid], 10)'
SELECT {[Measures].[Price Paid], [Measures].[Perc] } ON COLUMNS,
{ Products.Levels(0).Members } ON ROWS
FROM AsoSamp.Basic