Skip to content

StrPosition

Description

StrPosition returns the position of a substring in text.

Syntax

StrPosition(text, substring)

Parameters

Parameter Required Type Description
text Yes String, field, or expression Text to search.
substring Yes String Substring to find.

Notes

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

Example

StrPosition(ProductName, "Pro")

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