Problems / Percent Rank Scores / Editorial
PERCENT_RANK() calculates the relative rank of a row as a decimal between 0 and 1.
PERCENT_RANK()
Formula: (rank - 1) / (total_rows_in_partition - 1)
(rank - 1) / (total_rows_in_partition - 1)
This is useful for understanding where a value falls in a distribution — similar to percentiles in statistics.
Solve Percent Rank Scores yourself →