Cheat Sheets/Power Apps/Substitute
Power Fx function

SubstitutePower Fx function reference

Replace text by match.

Syntax

powerfx
Substitute( Text, OldText, NewText [, InstanceNumber ] )

Examples

powerfx
Substitute("a-b-c", "-", "/")
"a/b/c"
powerfx
Substitute(txtPhone.Text, "-", "")
powerfx
Substitute("2026-06-13", "-", "/", 1)

Common mistakes & gotchas

Related Power Fx functions

From Text

Used in these tutorials

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