---
title: "right_grapheme function in Strata | Oplema"
description: "Take a number of visible characters from the end of text, keeping multi-part emoji whole. Use it in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/right-grapheme"
updated: "2026-11-04"
---

# right\_grapheme

Extracts the right-most count grapheme clusters.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **VARCHAR**.

### Expression

```
right_grapheme('🤦🏼‍♂️🤦🏽‍♀️', 1)
```

### Result

```
'🤦🏽‍♀️'
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 🤦🏽‍♀️ |

## Arguments and types

```
right_grapheme(string, count)
```

**string**

Text

**count**

Number

Supported signatures (1)

```
right_grapheme(string: VARCHAR, count: BIGINT) → VARCHAR
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[left\_grapheme

Extracts the left-most count grapheme clusters.

](https://oplema.com/docs/strata/functions/left-grapheme)[left

Return the first characters of text, up to the given count.

](https://oplema.com/docs/strata/functions/left)[right

Return the last characters of text, up to the given count.

](https://oplema.com/docs/strata/functions/right)[substring\_grapheme

Extracts substring starting from grapheme clusters start up to the end of the string. If optional argument length is set, extracts a substring of length grapheme clusters instead. Note that a start value of 1 refers to the first character of the string.

](https://oplema.com/docs/strata/functions/substring-grapheme)

[Browse text](https://oplema.com/docs/strata/functions#text) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/text.html#right_graphemestring-count)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
