# LAG() LEAD() Functions in ES|QL

**URL:** <https://discuss.elastic.co/t/lag-lead-functions-in-es-ql/386589>\
**Category:** Elasticsearch\
**Created:** [May 31, 2026, 12:27am UTC](https://discuss.elastic.co/t/lag-lead-functions-in-es-ql/386589 "2026-05-31T00:27:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YousefNein](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yousefnein/32/145549_2.png) [@YousefNein](https://discuss.elastic.co/u/YousefNein)\
**Post date:** [May 31, 2026, 12:27am UTC](https://discuss.elastic.co/t/lag-lead-functions-in-es-ql/386589/1 "2026-05-31T00:27:12Z")

</div>

Will there be an addition for LAG() or LEAD() functions that are in SQL added to ES|QL in the future?
