# anyLast_respect_nulls (/docs/reference/sql/aggregate-functions/anylast-respect-nulls)



This page describes the RawTree engine binary used to generate this reference. It does not define Query API support. Descriptions retain upstream ClickHouse terminology. See [SQL interface scope](/docs/reference/clickhouse-compatibility#service-interfaces).

Returns the last value encountered in a group, including NULL values (unlike anyLast, which ignores NULLs).
