expect_column_quantile_values_to_be_between
Feb 24, 2026
·
5
min read
Values distribution
·
dbt-expectations
·
Column
How it Works
The expect_column_quantile_values_to_be_between test from the dbt-expectations package validates that a specified quantile of a column's values falls within a defined range. This enables flexible distribution checks without relying on mean or standard deviation, which can be skewed by outliers.
The quantile argument specifies the quantile to evaluate (e.g., 0.5 for the median, 0.95 for the 95th percentile).
Steps and Conditions
Column Selection: Choose the numeric column.
Quantile: Specify the quantile value between 0 and 1.
Define Range: Set
min_valueand/ormax_value.Execution: The specified quantile is computed and compared to the range.
Outcome: Pass if within range; fail otherwise.
Example Usage: Performance Monitoring
A platform engineering team monitors API response times and wants to ensure the 95th percentile latency stays below 500ms.
This ensures that the vast majority of API requests are served within performance SLA bounds.





