Cheat Sheets/Power Apps/StartsWith / EndsWith
Power Fx function

StartsWith / EndsWithPower Fx function reference

Test a prefix or suffix.

Syntax

powerfx
StartsWith( Text, Start ) / EndsWith( Text, End )

Examples

powerfx
StartsWith(txtFile.Text, "PO-")
true / false
powerfx
StartsWith(Lower(txtEmail.Text), "admin@")
powerfx
EndsWith(ThisItem.FileName, ".pdf")

Common mistakes & gotchas

Related Power Fx functions

From Text

Used in these tutorials

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