How to make LAG function work?

How to make LAG function work?

The Add Formula column modal shows that Lag, Lead, etc. window functions are available.
When I try to add the formula as lag( MAX("Date"), 1), it gives this error:
Please use aggregate formula option to create aggregate formula.

But the function description shows that we have to add an aggregate expression in the formula. These functions are also not available in your documentation page here https://ww.zoho.com/analytics/help/table/add-formulas/formula-column-built-functions.html

How do I use this function? Please update your documentation with detailed information and examples.