We reach this using the Transform the problem is we can update the status of the transactions but looks like the Transform is not discounting from the past information only adding when the field we conditioned is modify (updated_at)
There is some way for also discount from the past counts.
We have a specific problem, a group of transactions and their status can change on the time for example past from "on review" to "accepted" so we calculate a transform who counts this status for all transactions.
Our problem is when we update one status for example "on review" past to be "accepted" the transform update the row of count in "accepted" but don't discount -1 to the row of "on review"
Does acceptedalways contain review?
If I get it right, you want to deduct accepted from review. You can do this using an ingest pipeline that you attach to the transform output. In the ingest pipeline I would set review to review - accepted, e.g. using a script processor.
Another alternative I can think of is using a runtime field that you specify on the transform destination.