Returns the subcontinent name for the specified geolocation.

## Sample usage

`TOSUBCONTINENT(Subcontinent Code)`

## Syntax

`TOSUBCONTINENT(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

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

- [SUBCONTINENT_CODE](https://en.wikipedia.org/wiki/UN_M.49)
- [COUNTRY_ISO_CODE](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
- [REGION_ISO_CODE](http://en.wikipedia.org/wiki/ISO_3166-2)

## Examples

| Example formula | Input | Output |
|---|---|---|
| ` TOSUBCONTINENT(Subcontinent Code) ` | 143 | Central Asia |
| ` TOSUBCONTINENT(Country Data, 'COUNTRY_ISO_CODE') ` | MX | Central America |

## Related resources

- [Calculated fields](https://docs.cloud.google.com/data-studio/about-calculated-fields)
- [Data Studio function list](https://docs.cloud.google.com/data-studio/function-list)