Cheat Sheets/Power Apps/Replace
Power Fx function

ReplacePower Fx function reference

Replace text by position.

Syntax

powerfx
Replace( Text, StartPosition, NumberOfCharacters, NewText )

Examples

powerfx
Replace("2026", 1, 2, "19")
"1926"
powerfx
Replace(txtAccount.Text, 1, 4, "****")
powerfx
Replace("2026-06-13", 6, 2, "12")

Common mistakes & gotchas

Related Power Fx functions

From Text

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet