Templates

Calculations in templates

A template can work out values by itself: totals over line items, discounts, tax or deadlines in working days. You see and maintain all calculations in one place, the Calculations view.

On this page

Calculate an offer amount

You need: a template in draft and the permission to edit it.

  1. 1
    In the task, add a Repeatable group “Line items” with the sub-fields Quantity and Unit price.
  2. 2
    Add the sub-field Total price and switch on Calculate per row (formula).
  3. 3
    Enter {Quantity} * {Unit price} as the formula.
  4. 4
    Open the Calculations view and click New calculation.
  5. 5
    Choose Add up. The sentence then shows Sum and the column Total price.
  6. 6
    Name the field Offer amount and check it with test values: 2 × €100 and 1 × €50 give €250.
  7. 7
    Publish the template, as described under Check and publish.

Result: New cases calculate the offer amount on their own.

Two steps of the New calculation builder: Sum of Total price with the sentence sum of Total price, next to the name of the new field
  1. 1Sum: the kind of calculation
  2. 2How the calculation reads
  3. 3Name of the new field
A total over a group reads as a sentence: you pick the operation, the column and the group.

Which calculation fits?

A calculation is a switch on many fields, not a field type. Once it is on, the field is read-only and recalculates with every change. New calculation guides you in five steps. Choose the kind, fill in the sentence, set name and place, check with test values, review the effect.

Add upSum, count, average, minimum or maximum of a table columnSum of all package prices
CalculateCombine fields with + − × ÷ or less … %Net amount less Discount %
VATAmount × tax rate of the company on the document dateOffer amount × tax rate on the shipping date
Per rowCalculate in every row of a table from that row’s fieldsQuantity × Unit price
Larger or smaller valueTake the larger or smaller of two valuesMinimum fee or amount
If – then – otherwisePick one of two values depending on a conditionNew customer: 5 %, otherwise 0 %
TiersThe highest tier reached applies5 % discount from €30,000
DateAdd days, working days or monthsStart plus 10 working days
TextJoin text or list a columnall services, separated by commas
Across several casesCalculate over child and follow-up casesSum of all invoices of an order

Whatever cannot be combined, the wizard rejects before saving: net with gross, two currencies or a cycle. You pick fields from a list that names task, net or gross and currency. You can create a new input field such as Special discount % right there.

Add up can run only over certain rows: column, comparison and value. For a yes/no column you pick Yes or No instead of typing.

is Yes matches every row whose answer is Yes. is No matches every other row, including one where the column was left empty, like a box left unticked.

Conditions in the workflow differ: there an empty answer matches neither is Yes nor is No (Order, branches and conditions).

The Repeatable group supplies the rows a calculation runs over. Fields and forms describes its sub-fields. If a total is only an intermediate figure, hide it under Rules with Don't show in the task.

Maintaining all calculations in one place

The Calculations view in the editor’s switcher shows every calculated value as a card. The card names the value, shows the calculation as a sentence and gives the result with test values.

The Calculations view with one card per calculated value and the test values on the right
  1. 1New calculation
  2. 2Card of a calculated value
  3. 3Test values
The Calculations view: one card per calculated value, with the test values to try things out on the right.

Expand a card to see the worked example, Affects: and Show formula. Open in form jumps to the task with the field. Edit opens the same sentence builder as New calculation.

If a formula does not fit the building blocks, the card says Can only be edited as a formula. The Expert view (formula) then takes over. Values that only come from a dataset sit below under Taken from datasets.

The case list columns, the key figure band and target tracking sit further down in the same window. Template settings and the case list explains them.

Writing a formula yourself

In the Expert view (formula) you write the formula as in a spreadsheet. Name fields in curly braces, such as {Quantity} * {Unit price}. Write a table column as {Packages[Price]}.

Put a semicolon between a function’s arguments, for example RUNDEN({Total}; 2). The function names are German.

SUMME, ANZAHL, MITTELWERT, MIN, MAXColumn · optionally a condition for the rowsValue over a column
WENNCondition · then value · else valueOne of two values
RUNDENNumber · digitsRounded number
STAFFELValue · tiers from …The highest tier reached
WERKTAGEDate · count · calendarDate skipping weekends and holidays
MONATEDate · countDate whole months later or earlier
ARBEITSTAGEFrom · to · calendar · work patternWorking days from From to To, both included
JAHRDateThe year
LISTEColumn · separatorThe values of a column as text
STEUERSATZCustomer · document dateTax rate in percent on the document date
&Text · textJoin text

A date plus a number is a date. One date minus another gives the days in between. If the day does not exist for MONATE, the last day of the month applies: 31 Jan plus 1 month gives 28 Feb.

ARBEITSTAGE in detail
  • For WERKTAGE a half-day holiday counts in full. ARBEITSTAGE counts the days people work. A half-day holiday counts 0.5.
  • Days off and the calendar's holidays on the From day do not count. Without a calendar, the company calendar applies. Without a work pattern, its working days apply (Mon–Fri by default).
  • You set both under Organization → Calendar → Holidays & working days. Write the work pattern as days or digits, for example Mon-Wed or 1-3 (1 is Monday).
  • Example: 21 Dec 2026 to 4 Jan 2027 with Hessen and Mon-Fri gives 9 days, because 25 Dec and 1 Jan drop out.
  • Subtract half a day yourself: 21 to 23 Dec 2026 are 3 days, ARBEITSTAGE({From}; {To}) - 0.5 gives 2.5.
The expanded calculation Quote total in the Calculations view with example, effect and the formula shown
  1. 1The sentence: how the calculation reads
  2. 2The formula: table and column in square brackets
After Show formula the calculation appears below as in a spreadsheet. In the expert view you also put the column in curly braces: {Line items[Total price]}.

The field shows Not computable with the reason, never zero. This happens if To is before From, the calendar is missing or the work pattern is unreadable. The formula cannot read a person's calendar yet. Name the calendar.

Tax and holidays as of the document date

You calculate VAT with {Offer amount} * STEUERSATZ({Customer}; {Sent on}) / 100. For a customer field of type company, its tax code applies. You can also name a tax code such as Inland.

The rate on the document date applies. Without a document date, today's rate applies. A company without a tax code gives Not computable. If the customer sits in a dataset, copy the tax code into a field with From dataset. Name that field in the formula.

Tax codesOrganization → Taxes → Tax codes, with the Manage taxes permissionPreset: Inland 19%, Inland ermäßigt 7%, EU-Unternehmen 0%, Drittland 0%. New rates apply from today.
HolidaysOrganization → Calendar → Holidays & working daysNationwide and per federal state, 2024 to 2035. Your own holidays apply from the day they are added, also as half days.
Completing a task—The case recalculates first and freezes the state of that day.

A formula that names a tax code no longer finds it after it is renamed. Invoices can then come out with the wrong tax. You add regional holidays yourself, see Team calendar.

Start a case from every table row

If a task captures several quotes in a table, every row can become a case. Set this up on the task whose completion starts the cases. It sits on the After completion tab under New cases per row. Pick the group and the template there.

Bricksta immediately suggests which value goes into which field, and saves. A target must be a field that applies to the whole case. Once a row has its own case, it is locked in the task. You make changes in the new case.

The After completion tab with the sentence New cases per row and the list of carried-over values
  1. 1The sentence: group and template of the new cases
  2. 2Carry over values: target per field
The After completion tab: you pick group and template in the sentence, below it you set which values travel.
  • Carry over values: Pick the target per field or do not carry over. Only fields of the same type fit.
  • Only for certain rows: A case only for rows in which a condition holds, say Accepted is Yes.
  • Bundle: Rows with the same value in a column, say Project, become ONE case.
  • PDF of the row: Each new case receives its row’s offer in a file field.
  • Responsible: Who is responsible for the new cases. Without a choice, it is whoever completes the task.

Whether the new cases start right away follows their template's auto-start in its last published version. Without it they are still created and stay drafts.

Bundling, amendments and carried-over tables
  • When bundling, you choose per column how values combine. Options: first row, sum, list, earliest or latest date.
  • If the customer accepts more in a second round, a case with only the new rows is created. Its title ends in (Amendment 1).
  • A related table, such as milestones per quote, comes along. A row that matches no bundle says: not carried into any new case.
  • More than 50 rows in the group create no case, not even for the first 50. This also applies to an amendment.
  • The 50 count every row of the group, including those from earlier rounds. The request then shows: not created: more than 50 cards. Duplicating the template does not copy the rule.

Which values does a field show from a case or system?

Case fieldCase type, title, priority, due date or creation date
ReferenceThe value of a field from an earlier task, also a column of any group. You set required and visibility on the source field.
Live lookupA record from a connected system such as Jira or HubSpot
Live valueOne attribute of the live lookup, say its status. More in Integration fields.

If something doesn't work

Not computable: …To is before From, the calendar is missing or does not reach that year, or a company has no tax code.Read the reason after the colon. Correct the date, calendar or tax code.
Can only be edited as a formula.The formula does not fit the building blocks of the sentence builder.Open the Expert view (formula) and edit it there.
This calculation refers to itself in a cycle: …Two calculations depend on each other.Remove the reference on one side of the cycle.
not carried into any new caseThe row matches no bundle.Check the column used for bundling and the condition for the row.

What's next?