Cheat Sheets/Power Apps/Trim
Power Fx function

TrimPower Fx function reference

Trim ends + collapse inner spaces.

Syntax

powerfx
Trim( Text )

Examples

powerfx
Trim("  a   b  ")
"a b"
powerfx
Trim(txtSearch.Text) <> ""
powerfx
Filter(Staff, Trim(Lower(Name)) = Trim(Lower(txtSearch.Text)))

Common mistakes & gotchas

Related Power Fx functions

From Text

Used in these tutorials

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