Skip to main content

Look up the matching tier level for a value based on discrete boundaries.

Example

Let's say the highest power peak for a certain month (monthly-power-peak) is 150 kW. That means it falls into the second tier, since 150 kW >= boundary between the first and second tier (100 kW). The monthly-fixed-fee for that month becomes 5000 SEK (level of the matching tier).

boundaries
number[]
required

Tier boundaries. N contiguous tiers have N-1 boundaries: [0, b1), [b1, b2), ..., [bN-1, ∞).

Minimum array length: 1
Example:
[100]
levels
number[]
required

Level value for each of the N tiers.

Minimum array length: 2
Example:
[3000, 5000]
output
Dataset · object
required

Output Dataset produced by this function, a local name used by subsequent functions to reference this result

Example:
{
"id": "quarter-hourly-energy-offtake",
"resolution": "quarter_hourly",
"unit": "kWh"
}
tier_selector
Dataset · object
required

Reference used to select the matching tier. Each value in here is used to find a matching tier level to produce as output

Example:
{
"id": "quarter-hourly-energy-offtake",
"resolution": "quarter_hourly",
"unit": "kWh"
}
unit
enum<string>
required

Unit shared by all level values.

Available options:
A,
kV,
kW,
kWh,
hours,
SEK,
NOK,
SEK_per_kWh,
SEK_per_kW,
%
type
string
default:lookup
Allowed value: "lookup"