我在 RTF 模板中有一列,它使用 -
<?sum(current-group()/PAYMENT[../PAYMENT != ''])?>
计算总和
***Tax deduction***
Description current YTD
Voluntary `<?sum(current-group()/PAYMENT[../PAYMENT != ''])?>` `<?sum(current-group()/YEAR)?`>
Involuntary <?PAYMENT?> `<?sum(current-group()/YEAR)?`>
Pre tax `<?sum(current-group()/PAYMENT[../PAYMENT != ''])?>` `<?sum(current-group()/YEAR)?`>
我想计算
current
值和 YTD
列值的总和。我怎样才能做到这一点?
如果您有一个按名称列出的列(例如 CASH),则只需使用 < ? sum(CASH) ? > 即可计算列值的总和,而无需使用重复组。