我有这个草稿,我正努力完成以下任务:
由于我有repeating table
且每行代表一个月,因此我需要根据以下公式Budget Remain
为每行(月)重新计算Budget Remain = Budget - Total (for all the previous months)
,但不得影响上个月的预算保留
即:
Budget = 100
jan : Cost + Penalties = 20 (Total) --> Budget Remain = 100 - 20 = 80
Feb : Cost + Penalties = 30 (Total) --> Budget Remain = 100 - (20 + 30) = 50
但是当我尝试这样做时,最终每个budget remain
等于last budget remain calculated value