maxif() (aggregation function)
Returns the maximum value across the group for which Predicate evaluates to
- Can be used only in context of aggregation inside summarize
See also - max() function, which returns the maximum value across the group without predicate expression.
- Expr: Expression that will be used for aggregation calculation.
- Predicate: predicate that if true, the Expr calculated value will be checked for maximum.
The maximum value of Expr across the group for which Predicate evaluates to
range x from 1 to 100 step 1 | summarize maxif(x, x < 50)