Value-based thresholds for SQL Rules

With value based comparisons, you can write a SQL query that returns a single value (ex. sum of revenue over past day) and use the output value direct as the comparison metric.