Reference Updated April 8, 2026

TRUE

Category: Logical functions

Overview

The TRUE function returns 1 for every defined value in the input node. Undefined intersections remain undefined in the result.

Use this function when you need a constant true flag across all defined intersections of an input node, for example as a condition in IF or to create a binary helper table.

Syntax

TRUE('Node')

Example usage: TRUE('Revenue')

Parameters

ParameterDescriptionTypeRequired
NodeInput node, specified using the node name in single quotes (e.g.'Revenue')Node referenceYes

Output Shape

AspectBehavior
DimensionalitySame as input.
Values1 for every defined intersection. Undefined intersections remain undefined (N/A).
Row countSame as input. Only defined rows produce output.

Watch Out

  • TRUE only covers defined rows. It does not create values where the input is undefined. If you need to flag undefined rows, use IS_NA instead.
  • The input value itself does not matter. TRUE returns 1 regardless of whether the value is positive, negative, or zero. Only whether the value is defined matters.
  • TRUE accepts expressions as input (e.g. TRUE('A' + 'B')). The result reflects the dimensionality and defined intersections of the combined expression.

Examples

Returns 1 for all defined rows

This example shows TRUE returning 1 for every row that has a defined value in the input node.

Input node: Revenue

YearValue
2025-24.5
202695
2027110

Formula: TRUE('Revenue')

Year→ TRUE Result
20251
20261
20271

TRUE applied to a combined expression

This example shows TRUE applied to a sum of nodes. It returns 1 for each year where the combined expression produces a defined value.

Input node: Additional Revenue

YearProductValue
2025A95
2026B-56
2027A107
2027B5

Formula: TRUE('Revenue'+'Additional Revenue')

Year→ TRUE Result
20251
20261
20271

The addition rolls up both nodes to their common dimensions (Year only), and TRUE returns 1 for each defined year.

Undefined values remain undefined

TRUE only produces 1 for defined values. Rows where the input is undefined remain undefined in the result.

Input node: A

YearRevenue
202559
2026
2027157

Formula: TRUE('A')

Year→ TRUE Result
20251
2026
20271

Year 2026 has no defined value, so it does not appear in the result.


FunctionWhen to use instead
FALSEWhen you need 0 for every defined value instead of 1.
IS_NAWhen you need to detect undefined values rather than marking already defined intersections as true.
Was this page helpful?