Skip to main content
Calculates the distance between two points on a plane Category: math Syntax:
DistancePlane([x1], [y1], [x2], [y2])
Returns: Float Context Filtering: ✓ Yes

Parameters

NameTypeRequiredDescription
x1number or column✓ YesThe x coordinate of the first point
y1number or column✓ YesThe y coordinate of the first point
x2number or column✓ YesThe x coordinate of the second point
y2number or column✓ YesThe y coordinate of the second point
Allowed Column Types for x1: INT, FLOAT, DECIMAL Allowed Column Types for y1: INT, FLOAT, DECIMAL Allowed Column Types for x2: INT, FLOAT, DECIMAL Allowed Column Types for y2: INT, FLOAT, DECIMAL

Validation

  • Minimum parameters: 4
  • Maximum parameters: 4

Examples

DistancePlane(0, 0, 3, 4)
Calculates distance between points (0,0) and (3,4) Result: 5
DistancePlane([X1], [Y1], [X2], [Y2])
Calculates distance between two points for each row
Last modified on March 13, 2026