level 2 formulas - offset, post, lead, lag

Hi

 

There is some confusion in L2 regarding the above formulas

 

In the class we used offset and post BUT not lead, lag; the latter two were replaced with offset and post.

 

Is there use cases where Lag and Lead should be used instead of offset or post?

 

There is vagueness here at the moment.

 

Thank you

 

ravinder.

 

Tagged:

Answers

  • The LEAD and LAG functions allow you to specify how non-positive values should be treated - you would use these formulas if you wanted to return a different result for negative/zero values.   OFFSET is essentially a simplified version of the LEAD formula, as it will return the value of the period specific regardless of whether that cell value is positive, negative or zero (i.e. NONSTRICT).  So in other words, they all do something similar with slightly different behaviors/conditions.

     

    POST will allow for more than one source item to map to a specified target.  This formula should only be used in circumstances where more than one value can apply, anytime you are trying to return a single value from a specified number of periods in the past/future the other time related formulas (Offset, Lag, etc.) will operate more efficiently. See below for a bit more detail on POST: 

    https://help.anaplan.com/082cb491-879c-4711-b5c6-9ed162391bb1-POST 

     

    @RavinderB Hope this helps to clarify of the various formulas.

  • Thank you Tiffany