I have this code:
Patch(
'Student List',
LookUp('Student List', 'User ID' = ThisRecord.'User ID'),
{Carnet: LookUp('Student List','User ID' = ThisRecord.'User ID',Carnet) - 1}
)
I think the issue is the 'User ID' = ThisRecord.'User ID' as it always returns the first record in the table. In other cases I usually make sure the field names aren't the same in the collection / table that the ForAll is processing on but in this case I didn't and it would be cumbersome to fix. Before copying the column to another named column I wanted to see if there was something I was missing.