Skip to main content

Define Metrics in gPlan

Build the results you measure from your site data and land uses

Written by Holly Conrad Smith

A strategic plan is measured against targets: new homes, population, floor space, and employment. Metrics are those measures. gPlan includes the common ones, and you can build your own from any column on your sites and any value in your land use table.

Open Define metrics

Metrics live on the 3 · Scenarios tab, in the Define metrics section between your scenarios and the Results table. The section starts folded, so click Define metrics to open it. Each metric is a card that shows its live result for the active scenario. With two or more scenarios, click a tab above the cards to see the numbers for another one.

The metrics every plan starts with

Every new plan comes with five metrics that cover a typical housing study:

Metric

Formula

What it measures

Sites

count()

How many sites are in the shortlist.

Site area

sum(area)

Total site area, in m².

Buildable floor area

sum(area * far * efficiency)

Usable floor area the land uses allow, in m².

Dwellings

sum(area * far * efficiency / dwellingSizeSqm)

Homes: usable floor area divided by dwelling size.

Residents

sum(area * far * efficiency / dwellingSizeSqm * residentsPerDwelling)

People: dwellings times residents per dwelling.

These read a column named area that holds each site's area in m². When your parcel layer names it something else, switch each metric to Formula and type your column's name in place of area.

Add a metric quickly

Before you build a metric from scratch, check whether gPlan can add it for you. There are three quick ways.

Quick add buttons add common measures in one click. Hover over a button to see its formula. + Sites, + Site area, + Floor area, + Dwellings, and + Residents add the five starting metrics, + Jobs adds sum(area * far * efficiency * jobsPerSqm), and + Build cost adds sum(area * far * efficiency / dwellingSizeSqm * cost), in $.

The plain-English box at the top of the section writes a metric from a description. Type the result you want, such as "total dwellings" or "build cost in $m", and click Add metric or press Enter. gPlan asks Claude to write the formula and adds the metric. This needs an Anthropic credential. See gPlan Settings.

Help has worked examples built from your own columns. Click ? in the header, find the examples under 3 · Scenarios, and click + Add beside one to add it as a metric.

Build your own metric in the Wizard

When you need a measure gPlan doesn't offer, build it. The Wizard works like a short worksheet: give each input a letter, write a formula over the letters, and choose how to add it up across sites.

  1. Click + Add metric under the cards. A card named "New metric" appears in the Wizard, with letter A set to the area column.

  2. Type a name, such as "Open space".

  3. For each letter, pick what it stands for, then pick its name. Click + Add variable to add B, C, and more.

  4. Pick how to combine the sites: Sum of, Average of, Min of, Max of, or Count of sites.

  5. Type the formula after =, such as A * B / 100.

A letter can stand for one of four things:

  • Column: a column on your sites, such as area. It is different on every site.

  • Land use field: a value from the land use table, such as far, read through each site's land use.

  • Assumption: one plan-wide number, such as efficiency.

  • Result: another metric's total, such as Dwellings.

As you write the formula, each letter's badge turns green when the formula uses it and stays red when it doesn't. Click × on a letter to remove it. The letters after it move up, and the formula follows them. The line at the bottom of the card shows the full formula the Wizard stands for.

The combine choice only shows when a letter is a Column or a Land use field. A formula of only assumptions and results gives one number, with nothing to add up. A Land use field letter also has a via choice. It starts on active scenario, so the field follows the scenario you are looking at. Pick a column to always read the field through that column's land uses.

Count only some sites

Many measures apply to part of the study area, such as the floor area of sites zoned for mixed use. In the Wizard, use only where to count only the sites that meet conditions.

  1. Under the formula, click + condition beside only where.

  2. Pick a column, an operator, and a value, the same way as in a rule.

Conditions join with and. Click and to switch it to or. To count several values of one column, such as two land uses, use is one of and pick both.

Type a metric as a formula

If you are comfortable with formulas, type the whole metric instead of using the Wizard.

  1. Click Formula at the top right of the card.

  2. Type the formula, such as sum(area * far). gPlan suggests names and functions as you type. Press Enter or click a suggestion to accept it.

  3. To insert a name without typing it, click + property, search, and pick one. Site properties are your sites' columns, and Join properties are land use fields.

Each suggestion carries a letter: C for a column, A for an assumption, L for a land use field, R for another metric's result, and F for a function. Every name, operator, and function is in Formula Reference for gPlan. To set Formula as the default for new metrics, change New metrics start in in Settings. See gPlan Settings.

🚨 Warning: Clicking Wizard on a metric typed in Formula replaces its formula with a new Wizard metric that sums area. Clicking Formula on a Wizard metric keeps its formula.

Set the unit and format

Finish each metric by choosing how its number reads in the Results table. Type the unit to show after the number in Unit, such as m², $, or jobs. Use a metric unit (m, m², or ha) for lengths and areas, so gPlan can convert it when you switch to ft. Then pick a Format: 1,234 for whole numbers, 1,234.5 or 1,234.56 for decimals, or 1.2k to shorten large numbers.

Build on other metrics

Once you have a few metrics, you can use their totals in new ones, such as an occupancy rate applied to Dwellings. Type another metric's name in a formula, such as Dwellings * 2.4, or pick Result for a letter in the Wizard. A result is one number, so put it outside sum() and the other aggregates. A metric can't use its own result. gPlan shows "refers back to itself" when it tries.

Check a metric that looks wrong

When a number looks wrong, click Debug at the bottom of the card. A table shows the first 10 sites, each name the formula reads, the value for each site, and whether the site counts. Click Debug again to hide it.

A metric gPlan can't work out shows invalid in place of its number, with a line under the card that says why, such as "unknown name: farr". See Troubleshooting gPlan.

Order and remove metrics

The Results table lists metrics in the same order as the cards, so put the measures your report leads with at the top. Drag a card's ⠿ grip onto another card to move it. Click × at the top right of a card to delete the metric.

Did this answer your question?