Reference Updated March 25, 2026

FINDFIRST

Category: Filtering & data shaping

Overview

Description

Returns the first defined value per group along a given level. If no level is given the function will automatically use the lowest level in the time dimension used by the node.

Use this when you need to select one representative value per group, for example the first entry per product or the starting value in a time series.

Syntax

`FINDFIRST('Node'[, "Level"])`

Parameters

  • Node: Input node.

  • Level (optional): The name of the level to find the first values in respect to. Defaults to the lowest time level on the node.

Limitations

An error will occur:

  • If no level is provided and the node does not use the time dimension.

  • The level must be present on the entered node.

  • The level to find can not be higher in the dimension than the level used in the node (e.g. if the node uses "Month" the level can not be "Year").

Function combination

Often used together with TRUE to generate starting values, for example in combination with SCHEDULEPROJECTS: TRUE(FINDFIRST(‘Node’))


Example

First value per product along the time dimension

This example returns only the earliest defined value for each product. Products with gaps retain only the first year’s value.

Input node: Node A

2025202620272028
Product A4.54.54.5
Product B566.4
Product C7
Product D5.65.6

Formula: FINDFIRST('Node A') = FINDFIRST('Node A', "Year")

2025202620272028
Product A4.5
Product B5
Product C7
Product D5.6

FunctionWhen to use instead
ENUMWhen you want an index or ordering helper based on measure values rather than selecting one value per group.
ENUM_LEVELWhen you want an index based on the order of level values in dimension management rather than selecting one value per group.
Was this page helpful?