βοΈ Multiplier Node
The Multiplier Node is a `calculation` node that multiplies a previously calculated compensation value based on attainment tiers.
It supports:
- Attainment via:
- Target (single or period-based)
- Metric
- Tier configuration using:
- A
value(which can be dynamic viagetCompensationValue) - Or a fixed
multipliervalue
The multiplier is applied to:
- A single
compensation_value, or - An array of
compensationValuesper profile
π¦ JSON Representation
π§Ύ Form Data Fields
| Field | Required | Description |
|---|---|---|
reference_type | β | How to compute attainment: target or metric. |
target.id | β
if reference_type = target | The ID of the target to check attainment for. |
metric.id | β
if reference_type = metric | The ID of the metric used for attainment. |
tiers | β | Array of `[ attainment, multiplier |
tiers[].attainment | β | Minimum required attainment for the tier to apply. |
tiers[].multiplier | β
if value not set | Value to multiply compensation by. |
tiers[].value | β
if multiplier not set | Supports getCompensationValue() logic to compute the multiplier dynamically. |
βοΈ Execution Logic
- Attainment Calculation
- If
reference_type = target: - Use either:
- The recordβs processing date (if no outcome period), or
- Period-based attainment (if
outcome_periodis defined). - If
reference_type = metric: - Fetch metric value for the current compensation period.
- Tier Matching
- Attainment is scaled (e.g. Γ100 if
target-based). - Sorted tiers are evaluated from highest to lowest.
- First matching tier is selected.
- Apply Multiplier
- If
multiplieris defined in the tier β use it directly. - If
valueis defined β compute viagetCompensationValue(value, attainment). - Final compensation = original Γ multiplier
π€ Output Variables
| Variable | Description |
|---|---|
tier_index | Index of matched tier. |
attainment | Computed attainment from target or metric. |
multiplier | Multiplier applied. |
compensation_value | Result after applying the multiplier (single). |
compensation_values | Array of results for multiple profiles. |
π§ͺ Example
Multiply commission by 1.25 if attainment β₯ 100:
- If attainment = 95 β multiplier = 1
- If attainment = 102 β multiplier = 1.25