sum of column in XML publisher

7.5k views Asked by At

I have a column I am getting in the RTF TEMPLATE that calculates the sum by using -<?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)?`>

I want to calculate the sum total of the current value and YTD column value. How can I do that?

1

There are 1 answers

0
Abdul Muheeth On

If you have a column by name, (say CASH), you can calculate the sum of the column values simply by using < ? sum(CASH) ? >, without using repeating-group.