Looker Studio is now called Data Studio. Learn more about this change.

STARTS_WITH

Returns true if the field or expression begins with the specified text; otherwise, returns false.

Sample usage

STARTS_WITH(Campaign, "Summer")

Syntax

STARTS_WITH(X, text)

Parameters

  • X - A field or expression of any type.
  • text - The text to find within X. text can be a field, an expression, or a literal value. text is case-sensitive.

Examples

Example formula Input Output
STARTS_WITH(Campaign, "Summer") Summer Sale true
STARTS_WITH(Campaign, "Sale") Summer Sale false

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年08月26日 UTC.