Skip to main content
Skip table of contents

MAX

Category: Math & numeric

Overview

Description

Returns the maximum of matching values from two Nodes. Both nodes have to have either the same dimensionality, resulting in a Node with the same dimensionality, or one input needs to be a number, in which case the result has the dimensionality of the other Node.

Use when you need the row-wise maximum of two nodes or of a node and a fixed numeric threshold.

Syntax

MAX('Node1', 'Node2')

Parameter

Node: Input node, specified using the node name in single quotes (e.g. 'Profit')


Examples

Row-wise maximum across two inputs

This example shows MAX applied both to two input nodes and to a node combined with a fixed numeric threshold.

Input node: A

Year

Value

2025

32

2026

-42

2027

-17

Input node: B

Year

Value

2025

41

2026

12

2027

-25

Formula: MAX('A', 'B')

Year

→ MAX Result

2025

41

2026

12

2027

-17

Formula: MAX('A', 7)

Year

→ MAX Result

2025

32

2026

7

2027

7


Related Functions

Function

When to use instead

MIN

When you need the row-wise minimum of two nodes or thresholds instead of the maximum.

ABS

When you need absolute values of one node rather than a comparison between two inputs.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.