Community · Help

Sheetward User Guide

Turn an Excel or OpenDocument workbook (or Google Sheet) into a multi-user web app — forms, validation, lookups, import/export and more.

Calculated measures & percentagesReference

Some of your most important numbers — profit, margin, cost per unit — aren't a single field. A calculated measure lets you write that formula once, name it, and reuse it anywhere. Add a measure row to your Report_ sheet: its Title is the name, its Measure cell is the formula. Then write the name in any widget's Measure cell:

WidgetTitleMeasure
measureProfitsum(total_amount) - sum(cost)
kpiProfitProfit

The KPI now shows profit across the records on screen (filters included) — and “Profit” is available to every chart, pivot and table on the dashboard.

Two ways to write a formula. You can do the math on the totals, or on every record before totalling — the results can differ, so choose deliberately:

StyleExampleUse it when
Over aggregatessum(amount) - sum(cost) — computed once per groupThe math belongs after totalling — ratios, shares, group-level comparisons.
Per recordamount - cost — computed on each row, then summarizedThe math must happen on each row first — a per-line margin, for example.

Percentages. To read any value as a share, pick % of total or % of group in the Summarize column. In formulas, pct_of(a, b) is a as a share of b, and variance_pct(a, b) is the change from b to a — both display as percents. A plain ratio like sum(debt) / sum(equity) stays a bare number.

Currency and units follow your fields. You rarely have to say how a measure should be formatted — the display follows the fields in the formula:

The formula combinesThe result shows
Money plus or minus moneyMoney — Profit keeps your currency.
Money × or ÷ a plain number (a constant, a count, or a quantity with no unit)Still money — an average price like sum(line_amount) / sum(quantity) keeps the currency.
Money ÷ money, or two different currenciesA plain number.
pct_of(…) or variance_pct(…)A percent.

Overriding the display. When the automatic format isn't what you meant, you have two tools. Wrap a value in scalar(…) to strip its unit on purpose — sum(line_amount) / scalar(sum(quantity)) keeps the currency even when the quantity has units. Or add a Unit column to the measure row to force the format: a currency code (USD), a unit code (KGM), %, or plain.

Dividing by zero shows a blank (—), never a misleading 0. Calculated measures also appear in a flat table's column chooser, and their names translate via the Translation_ sheet (Object Type measure).