percentileOver - Amazon QuickSight


percentileOver calculates the nth percentile of a measure partitioned by a list of dimensions.

percentileOver is supported for use with analyses based on SPICE and direct query data sets.


The brackets are required. To see which arguments are optional, see the following descriptions.

percentileOver ( measure ,percentile-n ,[ partition_field, …] )



The aggregated measure that you want to do the calculation for, for example sum({Sales Amt}).


The percentile that you want to calculate for this measure. This decimal value can be 0–100.

partition field

(Optional) One or more dimensions that you want to partition by, separated by commas.

Each field in the list is enclosed in {} (curly braces), if it is more than one word. The entire list is enclosed in [ ] (square brackets).


The following example calculates the median (the 50th percentile) of Sales partitioned by City and State.

percentileOver ( Sales, 50, [City, State] )

The following example calculates the 98th percentile of sum({Billed Amount}) partitioned by Customer Region. The fields in the table calculation are in the field wells of the visual.

percentileOver ( sum({Billed Amount}), 98, [{Customer Region}] )

The following screenshot shows the how these two examples looks on a chart.