Reference array field value from the previous row

I have a JSON Array we will call ‘meta’ with a field ‘type’ that is a custom list [foo, bar, baz]. Can I put a formula on ‘type’ so if the previous value was ‘baz’ then return something like ‘baz2’. I keep running into errors like Field meta doesn’t exist