PercentileRank (PQL)

Finds the number presented by its percentile rank position in a list of numbers.

  • Returned Output: Numeric
  • Library: PQL \ Common \ Statistical
  • Version: 2018.00.000
  • Compatibility:
    • Can be combined with and other PQL function throughout the application.
    • It CANNOT be used with MDX or VBA functions. But it can be used on MDX-based content in other parts of the application.

Syntax

PercentileRank( <Numeric> , <Numeric List> )

* Click on the function's arguments above for more details on the input values.

Comments
  • The list of numbers can be typed in as a comma delimited list or inserted via an array.
  • The rank function finds the position of the supplied target value in the value list, based on a descending sort of the numbers in the list.
Different Function types
  • This function is like the Excel RANK function - calculating the rank of a number from a list of items.
  • Also see Rank.

Examples

This example finds the value found at the 50th percentile in the list of values 3 to 7 (returning 5). This is equivalent to the median function. The dataset function returns a list of numbers.

PercentileRank(0.5, dataset(3,4,5,6,7))

 

This example, using the grid above, would find the rank of a number across all the values in column 2 (numbering is zero-based). The DataSetColumn function returns an array (list) of values from column 3 in the grid above.

PercentileRank(0.25, dataSetColumn(2))

So it would return the value of 22.57% for the 25%-ranked item in a list of all items 23.89%, 23.59% etc.