Forum Discussion

Skemaz's avatar
Skemaz
Icon for Advocate II rankAdvocate II
9 years ago
Solved

Error using {[Index]-1} to reference field in previous row

Hi I'm trying to reference a field in the previous row using {[Index]-1} but I get the error: "We cannot convert the value to type list". Please see the screen-shots below that explain what I'm do...
  • MarcelBeug's avatar
    9 years ago

    In the first formula you are refering to the field [Margin], which refers to the value in the current row, but you want to refer to the entire table column, so [Margin] must be preceded by the previous step name.

     

    Otherwise, this kind of references tend to be very inefficient, so if you have a large table, the refresh will take "forever".

     

    A far better solution is to get the data from the previous row on the current row, as I explained in this topic.