computed column from recursive row

mikew
edited February 11, 2022 in Analytics #1
I am relatively new to Birt and using report designer 2.5. This is my first post so I hope that I am not asking a too obvious question. I am trying to create a computed column, the output of this column depends on a values in a previous row as well as the current row. At the moment I am struggling to find a way to include row(n-1) in an expression, hopefully someone can point me in the right direction.

Comments

  • mwilliams
    edited December 31, 1969 #2
    Hi mikew,

    The way to do this will be to create a "temp" variable or something in your initialize script and use that to store the current value in in your computed column expression, to use as the "last" value in the next row.

    Hope this helps.
    Warning No formatter is installed for the format ipb
  • Can you please provide an example on this using a script or expression please?