Text.TrimEnd

Syntax

Text.TrimEnd(text as nullable text, optional trim as any) as nullable text

About

Returns the result of removing all trailing whitespace from text value text.

Example 1

Remove trailing whitespace from " a b c d ".

Text.TrimEnd("     a b c d    ")
"     a b c d"