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

TOCONTINENT

Returns the continent name of the specified geolocation.

Sample usage

TOCONTINENT(Subcontinent Code)

Syntax

TOCONTINENT(X [,input_format])

Parameters

  • X - a text field or expression, or a geo field or expression.
  • input_format - format for text field X. Optional if X is correctly configured as a geo field.

Input format

TOCONTINENT accepts the following input formats if X is a text field:

Examples

Example formula Input Output
TOCONTINENT(Subcontinent Code) 143 Asia
TOCONTINENT(Country Data, 'COUNTRY_ISO_CODE') US-CA Americas

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.