Skip to content

Returns a weighted approximate percentile value.

func.percentile_approx_weight(get_column(table, 'val'), get_column(table, 'weight'), 0.5)
func.percentile_approx_weight(get_column(table, 'val'), get_column(table, 'weight'), 0.5)
┌──────┐
72.5
└──────┘
PERCENTILE_APPROX_WEIGHT(<val>, <weight>, 0.5)
SELECT PERCENTILE_APPROX_WEIGHT(val, weight, 0.5) FROM data;
┌──────┐
72.5
└──────┘