--- toc_priority: 104 --- ## anyLast {#anylastx} Selects the last value encountered. The result is just as indeterminate as for the [any](../../../sql-reference/aggregate-functions/reference/any.md) function.