Skip to main content

Custom Formulas in Tables: Default, Sum, and Average Explained

Decide how a custom formula column adds up in the header: run the formula on the totals, add up the rows, or average them.

When you add a custom formula column to a table, its header shows a total, just like any other number column. Calculation options let you decide how that total is worked out.

The values in the rows never change. Only the number in the header does.

Most of the time, you can leave it on Default. The other two options matter when your formula adds or subtracts a fixed amount, or when you want an average instead of a total.

Where to Find Calculation Options

Click the header of a formula column and hover over Calculation options. You’ll see three choices: Default, Sum, and Average.

You’ll find them in table views across Productive, such as your budget and project lists, and in most reports.

What Each Option Does

Option

How the header total is worked out

Default

Productive adds up each column the formula uses, then runs the formula once on those totals.

Sum

Productive runs the formula on every row, then adds up the results.

Average

Productive runs the formula on every row, then takes the average of the results.

For a simple formula like revenue minus cost, Default and Sum give the same total. They give different totals when the formula includes a fixed amount, or when it multiplies or divides one column by another.

Default: The Formula Runs Once, on the Totals

Take a formula column called Profit: @Revenue - @Cost.

Budget

Revenue

Cost

Profit

Budget A

5,000

800

4,200

Budget B

6,400

300

6,100

With Default, Productive adds up the revenue (11,400) and the cost (1,100), then runs the formula once: 11,400 - 1,100 = 10,300.

Adding up the profit of each row (4,200 + 6,100) gives the same 10,300 here, so for this formula it doesn’t matter which option you pick.

Sum: The Formula Runs on Every Row

Use Sum when the formula should apply to each row on its own. This matters most when the formula includes a fixed amount.

Say each budget pays a flat fee of 1,000, and you add a second formula column, Profit Minus Fee: Profit - 1000 EUR.

Budget

Profit

Profit Minus Fee

Budget A

4,200

3,200

Budget B

6,100

5,100

The header total depends on the option you pick:

  • Default: 10,300 - 1,000 = 9,300. The fee is subtracted once, from the total profit.

  • Sum: 3,200 + 5,100 = 8,300. The fee is subtracted from each budget, so 2,000 in total.

Since each budget really pays the fee, Sum gives you the right total here. In the screenshot, the column is still on Default, so the header shows 9,300.

To add a fixed amount of money, type # followed by the amount, then pick the currency from the list (for example 1000 EUR). A plain number without a currency is read in cents, so 1000 on its own means 10.00. Time works the same way: pick hours or minutes for a fixed amount of time.

Average: The Formula Runs on Every Row, Then Averages

Use Average when you want a typical value per row instead of a total, like the average profit per budget. In this example, the two budgets made 9,000 and 7,000 in profit, so Average shows 8,000 in the header.

Average is also useful for percentages, where it gives a different answer than Default. Take a Profit Margin column: (@Revenue - @Cost) / @Revenue.

Budget

Revenue

Cost

Profit Margin

Budget A

10,000

7,000

30%

Budget B

15,000

10,000

33.3%

  • Average: (30% + 33.3%) / 2 = 31.7%. Each budget counts the same, whatever its size.

  • Default: (25,000 - 17,000) / 25,000 = 32%. This is the margin of both budgets together, so a bigger budget weighs more.

Choosing an Option

Option

Use it when

Default

You want the formula applied to the table as a whole, for example total profit or the overall margin.

Sum

Your formula includes a fixed amount that should count once for every row, like a fee per budget.

Average

You want the typical value per row, for example the average profit or margin per budget.

Did this answer your question?