2 Replies Latest reply: Jun 21, 2017 4:07 PM by Salamon Musayev RSS

    Calculate Target Rate Based on Previous Year\Record

    Salamon Musayev

      Hello

       

      I have a table with a Year field and Avg Amount field. I need to create a field that will Calculate A Target Amount based on the previous Year Avg.  For example, my data starts with Year 2012 and My Avg(Amount) is 40, Since there no previous record there is no target rate.  However for the next Year -2013, my Avg(Amount) is 45, my target rate is to be with in 90% of 2012 Amount average, which would be 36 (Or not to diminish more than 10% following year).

       

      The table below hopefully puts thing into perspective.

       

      Yearavg(Amount)Target
      201240Null (since its first Year) or could be 40
      20134536  (40  * 0.9)
      20145040.5  (45 * 0.9)
      20154545 (50 * 0.9)
      20163740.5  (45 * 0.9)

       

      Please help.

       

      Thank you,