Menu
Amazon QuickSight
User Guide

strlen Function

strlen returns the number of characters in a string, including spaces.

Syntax

Copy
strlen(expression)

Arguments

expression

An expression can be the name of a field that uses the string data type like address1, a literal value like 'Unknown', or another function like substring(field_name,0,5).

Return Type

Integer

Example

The following example returns the length of the specified string.

Copy
strlen('1421 Main Street')

The following value is returned:

Copy
16