XML 发布者中的列总和

问题描述 投票:0回答:1

我在 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
列值的总和。我怎样才能做到这一点?

xml bi-publisher oracle-bi xml-publisher oracle-xml-publisher
1个回答
0
投票

如果您有一个按名称列出的列(例如 CASH),则只需使用 < ? sum(CASH) ? > 即可计算列值的总和,而无需使用重复组。

© www.soinside.com 2019 - 2024. All rights reserved.