Text.Replace
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Replaces all occurrences of a substring with a new text value.
Text.Replace (text as nullable text, old as text, new as text) as nullable text
| Argument | Description |
|---|---|
| text | The text to parse. |
| old | The text to replace. |
| new | The replacement text. |
Text.Replace("Thisisanorange", "orange", "apple") equals "Thisisanapple"
Show: