Table needs to be able to run SUMs across rows and down columns

I am new to Appian and am looking for sample code snippets to add values across rows and columns. I have added two more columns called salary and bonus and want to have a third column that shows the total of salary and bonus.

At the same time, I only want a row that can keep track of running sum of all the salary, bonus and total columns. 

Attached is the sample code that shows the three new columns.

/cfs-file/__key/communityserver-discussions-components-files/11/Sample-SAIL-Add-Rows-Columns.txt

Thanks

  Discussion posts and replies are publicly visible