Skip to content

Trim

Description

Trim removes leading and trailing spaces from text.

Syntax

Trim(text)

Parameters

Parameter Required Type Description
text Yes String, field, or expression Text to trim.

Notes

Use this function in calculated fields, metric expressions, or query expressions where the function category is supported.

Example

Trim(CustomerName)

The expression returns the calculated result according to the current query context.