重复表中的计算值

时间:2012-05-21 05:18:58

标签: xpath infopath2010 repeat

enter image description here

我有这个草稿,我正努力完成以下任务:
由于我有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

0 个答案:

没有答案