Hello everyone,
I would like to run an automation to keep track of the previous values of a cell so that I can see how inventory is being withdrawn from the database and have a correct running tally of inventory items.
Currently my airtable is set up like this.
The quantity removed field is constantly updated as product is removed. I would like to have the sum or some record of all the values ever written into this field in the previously removed field. I have tried formulas but I keep running into circular references. Therefore I am trying to create an automation which will add the new the new value entered to the quantity removed field to the previously removed field value.
For example: on the first day Quantity removed is entered from softr and now has the value 15 for a particular product. Therefore previously removed should be 15.
On the second day another entry is made to the Quantity removed (value 20). Now the previously removed value should be 35.
This must all happen to the same record because the original lot code must be the same.
This is the code I am using: