Metrics
A metric is one number the simulation tracks for each team: cash, gross margin, average delivery time, supplier trust. Players watch their metrics move live, triggers react to them and change them, and leaderboards and rubrics read them.
There are three metric components. They share most of their settings and differ only in how the number changes.
| Component | How the number changes | Players see it described as |
|---|---|---|
| Static Metric | Only when something changes it: a trigger action, a task’s completion band, or an AI conversation or evaluation. | Set by events |
| Time-Based Metric | On its own, by a fixed amount or a percentage on a clock, and also by anything that can change a static metric. | Moves with time |
| Formula Metric | Never directly. The engine recalculates it from other metrics and data resource cells. | Calculated |
All three can be attached to the simulation, a round, a subround or a task.
What it’s for
In a quick-commerce operations simulation you might use:
- a Static Metric for Cash, starting at ₹50,00,000, that triggers raise when a team wins a supplier negotiation and cut when it overspends;
- a Time-Based Metric for Customer Satisfaction that drops 1% every 10 minutes unless the team acts;
- a Formula Metric for Gross Margin % that works itself out from Revenue, Cost of Goods and a column of a Dark Stores data resource.
Fields every metric has
Open a metric’s editor (Edit on its card) to set these. The Universal metric settings box holds everything except the name and description.
| Field | What it does | Default |
|---|---|---|
| Component Name | The metric’s name everywhere: player cards, trigger and formula pickers, and typed formulas ([Cash]). | The type, e.g. “Static Metric” |
| Description | Shown to players in the metric’s detail view and as the tile’s hover text. The Metrics page search matches it too. | The catalogue’s description of the type. Replace it, because players see it. |
| Metric ID | A generated id, shown read-only. Formulas, triggers, leaderboards and the engine all refer to the metric by this id, so renaming a metric never breaks anything. Duplicate gives the copy a new id. | Generated |
| Visibility | Who can see the metric: public, team_only or hidden. See Visibility. | public |
| Changes shown to players | Public shows how the metric moved in the completion banners players get when a task, phase, round or the simulation completes. Hidden leaves it out of them. | Public |
| Which way is good | Higher is better, Lower is better (for costs) or Neutral. Decides the colour of a change in banners and on metric tiles, whether a metric counts as “Top performing” or “Needs attention” on the Metrics page, and the leaderboard’s default ranking direction for it. | Neutral |
| Display Format | number, percentage, currency or custom_unit. See Display settings. | number |
| Decimal Places | How many decimals to show. A whole number, 0 or more. | 0 |
| Currency Code | Only for currency. A three-letter code such as INR or USD. Required. | Empty |
| Unit Name and Unit Symbol | Only for custom_unit. Both are required. Players see the symbol after the number; the name is not shown to them. | Empty |
| Initial Value | The value every team starts with. Static and Time-Based Metrics only. A Formula Metric has Override Initial Value instead. | 0 |
Visibility
| Option | Players | Facilitators |
|---|---|---|
public | Every player sees their own team’s value. On a leaderboard that shows all teams, a metric column shows every team’s value. | See it |
team_only | The same as public everywhere except the leaderboard: a team_only column shows a value only in the player’s own team’s row. | See it |
hidden | Never shown to players: not on any page, tile, banner or leaderboard. Use it for intermediate numbers, such as the inputs of a formula. Choosing hidden also sets Changes shown to players to Hidden and locks it. | See it |
Players only ever see their own team’s metric values, except through the leaderboard.
hidden keeps a value off the screen, not out of the browser. The team’s state that the player dashboard downloads still carries every metric’s value, hidden ones included, so a player who looks at what the page receives can find them. Don’t rely on hidden for a number teams must never learn.
Display settings
Display settings change only how the number looks. The engine always stores and calculates with the raw number.
| Format | How a value of 1234567.891 shows (2 decimals) | Notes |
|---|---|---|
number | 12,34,567.89 | Indian digit grouping. |
currency | ₹12,34,567.89 for INR | Formatted for the currency code you give. |
percentage | 1234567.89% | The value is not multiplied by 100. A value of 0.25 shows as 0.25%, not 25%. Store percentages as 25, not 0.25. |
custom_unit | 12,34,567.89 hrs, with symbol hrs | The unit symbol follows the number after a space. |
Decimal places round what players see. A small value with 0 decimal places, such as a ratio of 0.42, shows as 0, which is correct arithmetic but looks wrong. If a metric “shows 0”, check its decimal places and format before suspecting the formula.
The Circular tile style on the player dashboard is only offered for percentage metrics.
Static Metric
A Static Metric holds its value until something changes it. Use it for anything the scenario moves in steps: cash, headcount, a trust score.
It has the fields every metric has and nothing else.
What can change it during a run:
- Trigger actions: Set, Increase, Decrease, Multiply, Apply % Change and Reset. See Triggers and actions, and which triggers can reach it.
- Completion bands on a task, when a team completes it. See Metric outcomes.
- AI Conversation and AI Evaluation outputs, which can set or adjust a Static or Time-Based Metric from the AI’s structured result, within the limits you give them. See AI Conversation and AI Evaluation.
Time-Based Metric
A Time-Based Metric changes on its own on a fixed clock, for every team, whether or not anyone has the page open. Everything that can change a Static Metric can change it too.
On top of the fields every metric has, it has:
| Field | What it does | Default |
|---|---|---|
| Change Direction | Growth (Increase) or Shrink (Decrease). | Growth |
| Change Type | Fixed adds or subtracts the change value on each tick. Percentage multiplies by (1 + value/100) for growth or (1 − value/100) for shrink. | Fixed |
| Frequency | How often it ticks: minute, hour, day, week, month (30 days) or custom. | day |
| Change Value | The amount, or the percentage, applied on each tick. | 0 |
| Custom Frequency (ms) | Only for custom: the interval in milliseconds. 60000 is once a minute. The engine never ticks faster than every 10 seconds, so anything below 10000 runs at 10 seconds. | Empty |
| Minimum Value | Optional floor. The value never goes below it. | None |
| Maximum Value | Optional ceiling. The value never goes above it. | None |
How it ticks
- Ticking starts when the run starts, for every Time-Based Metric in the simulation, wherever it is attached. A metric attached to round 3 ticks from the start of round 1. The first tick comes one interval after the start.
- The clock is real time.
daymeans every 24 hours. With the defaults (day, change value 0) a new Time-Based Metric does nothing in a typical run: set a shorter frequency and a change value. - Each team’s value ticks from its own current value. A 2% shrink takes 2% of what that team has now.
- Minimum and Maximum clamp every tick, and they also clamp trigger actions on this metric (Set, Increase and so on). They don’t clamp completion bands or AI outputs.
- A tick that changes nothing is skipped. If the value is already at its floor or ceiling, or a percentage applies to 0, no change is recorded and no metric trigger fires.
- Pausing stops the clock. While the run is paused, including a break between rounds, no ticks happen. On resume each tick keeps the time it had left.
- Ending the run stops it for good.
- Missed ticks catch up. If the server was down when ticks were due, the missed ticks are applied together when it is back, and the next tick stays on the original schedule.
Example: Customer Satisfaction, initial value 90, Shrink, Percentage, custom 600000 (10 minutes), change value 1, minimum 0. Every 10 minutes of play, each team’s satisfaction drops 1% of its current value, and never below 0.
Formula Metric
A Formula Metric is read-only. Its value is calculated from a formula over other metrics, constants and data resource cells, and the engine recalculates it for each team as the run goes on. Nothing can set it directly.
It has the fields every metric has except Initial Value, plus the Formula builder and Override Initial Value.
Building a formula
The Formula box has two modes, switched at its top right.
Buttons builds the formula piece by piece:
| Control | What it does |
|---|---|
| Constant and Add constant | Adds a number. |
| Metrics list | Click a metric to add it. Search by name, type or id. A metric that would create a circular dependency is greyed out. |
| Operators | + - * / % ^. Once the formula has something in it, pick an operator before adding the next value; otherwise the builder says “Pick an operator above before adding to the existing formula.” |
| ( and ) | Opens and closes a group. Close every group before saving. |
| Functions | Wraps the whole formula so far in the function, e.g. ROUND(...). |
| Data Resource | Adds a cell or a column aggregate. See Referencing a data resource. Only shown when a data resource is attached to the same node or one above it. |
| Reset | Clears the formula. |
| Undo | Steps back, up to 50 steps. |
In the formula display, click an operator to swap it for another, or the × on any part to remove it.
Type formula lets you write it as text. Press Enter, or click away, to apply. As you type, suggestions offer metric names, data resources and functions.
| You type | Means |
|---|---|
[Cash] | The metric named Cash (case doesn’t matter). Its id works too. |
{Dark Stores.DS-014.orders_per_day} | One cell: the orders_per_day column of the row whose id is DS-014, in the data resource named Dark Stores. |
SUM({Dark Stores.orders_per_day}) | A column aggregate over every row. Also AVG, MIN, MAX, COUNT. |
ROUND([Revenue] / [Orders]) | A function over other values. |
-[Cost] | A leading minus. |
Operators follow normal precedence: ^ first (and right to left), then * / %, then + -. Use brackets to be explicit.
Example: ([Revenue] - [Cost of Goods]) / [Revenue] * 100, displayed as percentage with 1 decimal place, gives a gross margin such as 23.4%.
Operators and functions
| Operator | Does | Edge case |
|---|---|---|
+ - * | Add, subtract, multiply | |
/ | Divide | Dividing by 0 gives 0 |
% | Remainder | Remainder by 0 gives 0 |
^ | Power |
| Function | Does |
|---|---|
SUM(a, b, …) | Adds its arguments |
AVG(a, b, …) | Average of its arguments |
MIN(a, b, …), MAX(a, b, …) | Smallest or largest argument (0 with no arguments) |
ABS(a) | Absolute value |
ROUND(a) | Rounds to the nearest whole number |
CEILING(a), FLOOR(a) | Rounds up, or down, to a whole number |
IF(test, a, b) | a when test isn’t 0, otherwise b |
COUNT(a, b, …) | How many arguments it has |
Every function works the same during a run as in the builder’s preview.
ROUND, CEILING and FLOOR always give a whole number. A second argument, such as the 2 in ROUND([Margin], 2), is ignored, in the preview and during a run. To show decimals, leave the number unrounded and set Decimal Places.
The SUM, AVG, MIN, MAX and COUNT that wrap a {Resource.Column} reference are column aggregates, not these functions, and they all work. See below.
Referencing a data resource
A formula can read a Data Resource attached to the same node or a node above it.
- Single Cell: pick the resource, the Row ID (search the uploaded rows or type an id) and the column, then Add cell reference. The engine finds the row whose id matches exactly. If no row has that id, or the cell is empty, the cell counts as 0.
- Column Aggregation: pick the resource, the column and
AVG,SUM,MIN,MAXorCOUNT, then Add column aggregation. It covers every row the team has at that moment, including rows triggers added during the run. Empty cells are left out, so they don’t pull an average down.COUNTcounts the cells that hold a number. An empty column gives 0.
Cells are read leniently, so display-formatted values still count: ₹1,20,000 reads as 120000, 12% as 12, 10.2 hrs as 10.2, and -5 or (50) as negative. The flip side: any digits in a text cell are read as a number, so Zone 2 counts as 2 and KNU-001 as 1.
Each team’s formula reads that team’s own copy of the data resource.
Override Initial Value
Override Initial Value is a switch with a number: “a manual starting value instead of the calculated formula result”. When it’s on, each team starts the run at that number, and the metric holds it until something the formula reads changes. From then on, the formula is calculated as usual.
Preview
Under the formula, Preview shows = value: the result with every metric at its initial value. Data resource rows aren’t loaded into the preview, so cell and column references count as 0 there. Treat it as a sanity check, not as the value players will see.
Rules the builder and save enforce
The builder shows problems under the formula:
- “Formula cannot be empty.” An empty formula can still be saved; it evaluates to 0.
- “Referenced metric no longer exists.”
- “Circular dependency detected.” (A depends on B, which depends on A.) Buttons mode won’t let you pick a metric that would cause one, but a typed formula can.
- “Possible division by zero detected.” (a warning, for dividing by a literal 0)
- “
NAMErequires at least one argument.”
When you save, the template is rejected if a formula refers to:
- a metric or data resource that doesn’t exist (common after importing a template exported from elsewhere; the JSON import offers to remap a missing data resource to one that exists), or
- a metric or data resource attached to an unrelated branch, such as a sibling task, rather than to the formula’s own node or a node above it.
A circular dependency doesn’t stop a save, but the save warns about it, naming the formulas in the circle. Publish refuses the template until you remove one of the references, and so does a test run, because a run can’t work out formulas that depend on each other.
When it recalculates
- At the start of the run, before any trigger runs, so a trigger on Simulation Started already sees the calculated value.
- Inside a chain of steps: when the chain starts, and after each trigger action, so the next action and the next trigger see the new value.
- After every engine operation that can change state: a task handed in or completed, a trigger firing, a timer tick, an AI conversation or evaluation result, a round or phase starting or ending, a pause or resume.
- In dependency order, so a formula that uses another formula sees its fresh value.
- Per team, from that team’s metrics and rows.
Each time a Formula Metric’s value moves, it raises Metric Changed and Formula Result Changed for the team. In a run started before 2 November 2026, formulas are recalculated only at the end of each operation, and the recalculation raises no events (see Triggers).
Scope: what can see and change a metric
Where you attach a metric decides three things.
Where players see it. Every visible metric appears on the player’s Metrics page, wherever it is attached. A metric attached to a task also shows on that task’s page, and one attached to a round or subround shows on that round’s or phase’s page. A metric attached to a round, subround or task that is still locked isn’t sent to players until it unlocks.
What can refer to it in the builder. A formula, a trigger condition or a trigger action on a node can pick metrics attached to that node or to any node above it, never to a sibling. A task’s trigger can use the task’s metrics, its subround’s, its round’s and the simulation’s.
What trigger actions can change. The same rule holds during a run: a trigger’s metric action (Set, Increase, Decrease, Multiply, Apply % Change, Reset) changes a metric attached to the trigger’s own node, a node above it, or the simulation. An action aimed at any other metric is skipped, and the event log says why. Completion bands and AI outputs are not limited this way.
Metric outcomes (completion bands)
A task’s Completion Threshold Bands each have Metric Impacts: changes that apply when a team completes the task with a score in that band, such as “+5% Cash at 100”. Each impact is either +/- (adds the value) or % (multiplies by 1 + value/100). Impacts are not clamped by a Time-Based Metric’s minimum and maximum, and each one counts as a metric change for triggers. See Tasks.
The metric picker in Metric Impacts lists the Static and Time-Based Metrics attached to the task, its subround, its round or the simulation. Formula Metrics aren’t offered, because the engine works them out from their formula.
What players see
- The Metrics page lists every metric the team can see: a headline row, the biggest movers (“Top performing” and “Needs attention” when Which way is good is set, otherwise “Biggest rises” and “Biggest falls”), recent changes, and All metrics. Players can filter by Simulation, Rounds, Phases or Tasks, search by name or description, open any metric to see its history chart and description, and Customise the layout for themselves.
- A task page shows the task’s metrics in a Where things stand panel beside the brief, with an arrow when a value is up or down on where it started.
- Round and phase pages show the metrics attached there, and the simulation’s, as tiles laid out by the dashboard designer. A tile can be drawn as a number, sparkline (the default), bar graph, progress bar, or (for
percentagemetrics) a circle. See Player dashboard. - Completion banners list how the team’s metrics moved when something completed, leaving out metrics whose changes are hidden.
- The leaderboard can rank by a metric or show it as a column. See Leaderboard.
Values update live as they change, with no refresh. A Formula Metric has no starting value to compare against unless you override it, so players see no “since the start” change for it. Facilitators see every metric, including hidden ones, on the facilitator dashboard.
Triggers and actions
Events
Metric events are offered on a node when a metric of the matching type is attached to that node or a node above it. Like most trigger events, each fires at most once per team per run. See Triggers.
| Event | Offered for | Fires when |
|---|---|---|
| Metric Above Threshold | All three types | The metric is above Threshold Value. Checked each time any metric changes. |
| Metric Below Threshold | All three types | The metric is below Threshold Value. Checked each time any metric changes. |
| Metric Equals Value | All three types | The metric equals Exact Value (within 0.001). Checked each time any metric changes. |
| Metric Changed | All three types | The metric changes. |
| Metric Increased | Static, Time-Based | The metric goes up. |
| Metric Decreased | Static, Time-Based | The metric goes down. |
| Metric Reset | Time-Based | A Reset Metric action puts the metric back to its initial value. |
| Formula Result Changed | Formula | The formula’s calculated value changes. |
What counts as a change: a trigger metric action (even one that leaves the value the same), a completion band impact, an AI output, a time-based tick that actually moved the value, or a Formula Metric recalculated to a new value.
How Formula Metrics behave in triggers:
- When a Formula Metric is recalculated to a new value, it raises Metric Changed and Formula Result Changed, with its value before and after. This happens inside the chain of steps, straight after the change to what it reads.
- Above, Below and Equals on a Formula Metric see the new value at once, so the change that pushes the formula over the line fires them.
Actions
| Action | What it does |
|---|---|
| Set Metric | Sets New Value. |
| Increase Metric | Adds Amount. With Unit set to Percent %, multiplies by (1 + amount/100). |
| Decrease Metric | Subtracts Amount. With Percent %, multiplies by (1 − amount/100). |
| Multiply Metric | Multiplies by Factor. |
| Apply % Change | Grows or shrinks by Percent, in the chosen Direction (Increase or Decrease). |
| Reset Metric | Puts the metric back to its initial value. |
The value fields (New Value, Amount, Factor, Percent) take one of three sources:
- Static Value: a number you type.
- Metric Ref: another metric’s Current Value or Initial Value.
- Data Resource Ref: one cell, by resource, row id and column. A cell that isn’t a plain number reads as 0.
A reference is read once, when the action runs. It is a snapshot, not a live link.
The metric picker of these actions doesn’t offer Formula Metrics, which can’t be changed. An action saved with one before shows it as (a formula metric can’t be changed) and does nothing. A Formula Metric can still be read as a Metric Ref. See Scope for which metrics an action can reach.
At runtime
- Every metric is per team. Each team starts at the initial value and moves independently.
- Every run starts from the template. A run gets its own copy of the published version, so later edits to a metric never reach a run under way. There is no way to give one run different starting values.
- Changes are recorded in the run’s event log, and each team’s metric history (the trail behind the charts) grows with every change.
Limits and gotchas
- Percentages aren’t scaled.
percentageadds a % sign to the raw value. Multiply by 100 in the formula if you calculate a fraction. - Default description shows to players. Replace it with what the metric measures.
- Trigger actions reach the trigger’s own node and the nodes above it. See Scope.
ROUND,CEILINGandFLOORgive whole numbers. A second argument is ignored.- Override Initial Value is a starting value. The formula takes over as soon as something it reads changes.
hiddenisn’t secret. A hidden metric’s value isn’t shown, but it reaches the player’s browser with the team’s state.- Time-based clocks are real time.
day,weekandmonthrarely tick in a short run, andcustomis in milliseconds, not minutes. - Typed references can’t contain full stops in the data resource name or row id, because the full stop separates resource, row and column. Use the Data Resource buttons for those.
- Circular formulas typed by hand save with a warning, and the template can’t be published until you remove the circle.
Related
- Data Resource: tables that formulas aggregate and triggers change.
- Triggers and Actions: every event and action in detail.
- Tasks: completion bands and their metric impacts.
- Leaderboard and Rubric: ranking and scoring by metric.
- Player dashboard: how players see and arrange metrics.