Notification

This article is about Looker Studio. For Looker documentation, visit https://cloud.google.com/looker/docs/intro.

REPLACE

Returns a copy of the original text with all occurrences of the search text substituted by the replacement text.

Sample usage

REPLACE(Campaign, "Summer", "Spring")

Syntax

REPLACE(X,Y,Z)

Parameters

  • X - a field or expression of any type.
  • Y - a field or expression of any type.
  • Z - a field or expression of any type.

Examples

Example formula Input Output
REPLACE(Campaign,"Summer","Spring") Summer Sale Spring Sale
REPLACE(Campaign,"Sale","Discount") Summer Sale Summer Discount

Related resources

Was this helpful?

How can we improve it?
true
What's new in Looker Studio?

Learn about new features and recent changes. Looker Studio release notes live on Google Cloud.

Search
Clear search
Close search
Main menu
8953741231663978147
true
Search Help Center
true
true
true
true
true
102097
false
false